But it seems like the SendToHTTP is not reliable. Allthough the WIFI connections are fine.
Sometimes all SendtoHTTP commands are executed/received, but a lot of times some of them are not.
What can I do ?
At the moment I am using "ESP_Easy_mega-20191208_normal_ESP8266_4M1M.bin"
I read about the ACK function in new builds. Could this help?
Code: Select all
if [Magneetsw#switch] = 1
SendToHTTP www.pushsafer.com,80,"/api?k=xxxxxxxxxxxxxxxxxx&t=Ehek&m=Het%20elektrisch%20hek%gaat%open!!&d=a&s=3&pr=2"
SendToHTTP 192.168.0.102,8181,"/json.htm?type=command¶m=udevice&idx=2197&nval10ue=0&svalue=c:/mp3/pushsafer/0003.mp3"
SendToHTTP 192.168.0.102,8181,"/json.htm?type=command¶m=switchlight&idx=1028&switchcmd=On"
SendToHTTP 192.168.0.36,80,"/control?cmd=play,0003"
SendToHTTP 192.168.0.15,80,"/control?cmd=event,DeurbelBeverlyHIllsCop"
SendToHTTP 192.168.0.29,80,"/control?cmd=event,LampAan15min"
SendToHTTP 192.168.0.35,80,"/control?cmd=event,lpaan"
SendToHTTP 192.168.0.43,80,"/control?cmd=event,aan"
Endif