From 23fa723a74a93ff65bfcacf1cd483f807b0c621d Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 02:57:07 +0300 Subject: [PATCH] Update linkedGet.lua --- linkedGet.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/linkedGet.lua b/linkedGet.lua index af17094..1574f3f 100644 --- a/linkedGet.lua +++ b/linkedGet.lua @@ -1,9 +1,16 @@ local event = require("event") local keyboard = require("keyboard") local component = require("component") +local internet = require("internet") local tunnel = component.tunnel while true do local _, _, _, _, _, message = event.pull("modem_message") - print(message) + local result = "" + local handle = internet.request("http://worldtimeapi.org/api/timezone/Europe/Moscow") + for chunk in handle do + result = result..chunk + end + local mt = getmetatable(handle) + print(result..message) tunnel.send("succes!") end