Update getTime.lua
This commit is contained in:
parent
ca9b74a530
commit
1ac196c8c6
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ local internet = require("internet")
|
||||||
local component = require("component")
|
local component = require("component")
|
||||||
local modem = component.modem
|
local modem = component.modem
|
||||||
|
|
||||||
|
local address = "" --адрес беспроводной платы
|
||||||
modem.open(69)
|
modem.open(69)
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
@ -23,5 +24,5 @@ while true do
|
||||||
f:close()
|
f:close()
|
||||||
local datetime = date.." "..hour..":"..min
|
local datetime = date.." "..hour..":"..min
|
||||||
print(datetime)
|
print(datetime)
|
||||||
modem.broadcast(69, datetime)
|
modem.send(address, 69, datetime)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue