Voilà cela fonctionne maintenant, c'était comme la dernière fois, c'est le https au niveau get qui conince quand je passe avec mon smartphone pour Internet
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
-- source: https://nodemcu.readthedocs.io/en/master/modules/ds18b20/
|
||||
|
||||
function a1()
|
||||
print("\n a1.lua zf190616.1453 \n")
|
||||
print("\n a1.lua zf190616.1519 \n")
|
||||
end
|
||||
|
||||
a1()
|
||||
@@ -27,7 +27,7 @@ ds18b20.read(
|
||||
elseif ind == 3 then
|
||||
ztemp3 = temp
|
||||
--C'est la fin de lecture, on envoie les mesures à ThingSpeak
|
||||
print(ztemp1,ztemp2,ztemp3)
|
||||
print(ztemp1,ztemp2,ztemp3)
|
||||
disp_send()
|
||||
end
|
||||
end,{})
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
-- Petit script pour envoyer quelque chose sur un serveur WEB
|
||||
print("\n web_cli.lua zf190616.1513 \n")
|
||||
|
||||
print("\n web_cli.lua zf190616.1519 \n")
|
||||
|
||||
function disp_send()
|
||||
print("web_cli: ")
|
||||
ztemp1=11 ztemp2=12 ztemp3=13
|
||||
-- ztemp1=11 ztemp2=12 ztemp3=13
|
||||
|
||||
zurl=thingspeak_url_update.."field1="..tostring(ztemp1).."&field2="..tostring(ztemp2).."&field3="..tostring(ztemp3)
|
||||
print(zurl)
|
||||
|
||||
Reference in New Issue
Block a user