Update getTime.lua

This commit is contained in:
erius0 2021-01-08 17:22:47 +03:00 committed by GitHub
parent ca9b74a530
commit 1ac196c8c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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