As the title says... Chat on...

User avatar
By fabix68
#9182 hi,
I connected a DS18B20 to a module esp8266.
I need to send the temperature to a page php installed on a remote raspberry Example "http://192.168.1.56/temp.php?temp=23.2"
you can do this in LUA?
TNK
User avatar
By fabix68
#9212 tnk Bymanawyrm
I had already seen and downloaded your library.
I tried to use it but the system crashes after same second.
Code: Select alldofile("example.lua")
ĶBß= O9ÿˆ«`ú‰RõIÿفBCáNodeMcu 0.9.5 build 20150105  powered by Lua 5.1.4
Setting up WIFI...
>
Hard Restart sabato 7 febbraio 2015  23:39:35


Code: Select alltmr.wdclr()
http = require("http")
collectgarbage()
--        IP/Host        URL                           GET Arguments  Finished Callback
http.get("192.168.1.173", 80, "/esp.php", {temp = "11.11"}, function (payload)
   print(payload)
end)
http = nil
package.loaded["http"]=nil
collectgarbage()

what am I wrong?