Page 1 of 1

Unreliable SendToHTTP?

Posted: 22 Aug 2019, 21:42
by Vilda
I am trying to use SendToHTTP each minute (rules code fragment below) to send actual data to my server and basically it works. The problem is there are significant gaps in the data received (see the attached picture or directly at http://itrubec.cz/monitor/iotbeehive-ibm-roof-en.php). Time to time are data missing for some minutes and then they appear again. What could be causing this?
What more - SendToHTTP to ThingSpeak stopped to work with the last update. Is someome experiencing similar behaviour? Is it caused by the latest release or is something screwed up with my rules/setup?
I am using ESP_Easy_mega-20190817_dev_ESP8266_4M.bin

Code: Select all

On Rules#Timer=2 do
  timerSet,2,59
  if [Relay#R]=0
    SendToHTTP itrubec.cz,80,/monitor/xxx.php?a=[DHT#TIN]&b=[DHT#HIN]&c=[BME#TOUT]&d=[BME#HOUT]&e=[BME#POUT]&f=[Light#L]&g=0&h=[HP1#hp1]&i=[HP2#hp2]&j=[Sonda#sonda]&key=xxx&dev=xxx
  else
    SendToHTTP itrubec.cz,80,/monitor/xxx.php?a=[DHT#TIN]&b=[DHT#HIN]&c=[BME#TOUT]&d=[BME#HOUT]&e=[BME#POUT]&f=[Light#L]&g=1&h=[HP1#hp1]&i=[HP2#hp2]&j=[Sonda#sonda]&key=xxx&dev=xxx
  endif
endon

Re: Unreliable SendToHTTP?

Posted: 23 Aug 2019, 05:41
by grovkillen
Not sure, perhaps the setting of the timer after the if statement could help?

Re: Unreliable SendToHTTP?

Posted: 23 Aug 2019, 13:06
by TD-er
SendToHTTP does not wait for an acknowledgement.
The controllers can be set to wait for an acknowledgement.

Something similar was found last week regarding sending data to ThingSpeak via HTTP.
See: https://github.com/letscontrolit/ESPEas ... -522628901