(yeti@aurora:3)/home/tmp$ telnet nodemcu0 Trying ###IP-address###... Connected to nodemcu0.###domain###. Escape character is '^]'. Welcome to NodeMcu world. stdin:1: unexpected symbol near ' > -- the error does not show when using "nc nodemcu0 23" to connect > file.open("init.lua") print(file.read()) file.close() dofile("init-sta.lc") dofile("telnetd.lc") -- think big! ;-) dofile("thingspeak.lc") > file.open("init-sta.lua") print(file.read()) file.close() wifi.setmode(wifi.STATION) wifi.sta.config("###SSID###","#####PASSWORD###") wifi.sta.connect() > file.open("telnetd.lua") print(file.read()) file.close() s=net.createServer(net.TCP,3600) s:listen(23,function(c) function s_output(str) if(c~=nil)then c:send(str) end end node.output(s_output, 0) c:on("receive",function(c,l) node.input(l) end) c:on("disconnection",function(c) node.output(nil) end) print("Welcome to NodeMcu world.") end) > file.open("thingspeak.lua") print(file.read()) file.close() -- 600000 = 10 min tmr.alarm(0,600000,1, function() conn=net.createConnection(net.TCP,0) conn:on("receive",function(conn,str) print(str) end) conn:connect(80,'184.106.153.149') -- api.thingspeak.com conn:send(string.format("GET /update?key=###ThingSpeakKey###&field1=%d&field2=%d&field3=%d&field4=%d&ignore=%d HTTP/1.1\r\nHost: api.thingspeak.com\r\nAccept: */*\r\n\r\n",tmr.now(),node.heap(),file.fsinfo())) conn:on("sent",function(conn) print("Closing connection") conn:close() end) conn:on("disconnection",function(conn) print("Got disconnection...") end) end ) > _