FHEM Forum

FHEM => Sonstiges => Thema gestartet von: marcel.schulz.961 am 19 September 2015, 12:12:17

Titel: HTTPMOD: Set state if timeout
Beitrag von: marcel.schulz.961 am 19 September 2015, 12:12:17
Hi,
Im using HTTPMOD to collect sensor values from an Arduino with an Ethernet shield. That works verry good.
But if the Ethernet Shield is not responding, the last received value is stored until fhem reboots.
The question is: Is there a way to set the State if a timeout occures on requesting an URL?
I couldn't find any information for this!

Thanks a lot for your help!


Gesendet von meinem iPhone mit Tapatalk
Titel: Antw:HTTPMOD: Set state if timeout
Beitrag von: StefanStrobel am 24 September 2015, 18:13:39
Hello,

check out Watchdog:
http://fhem.de/commandref.html#watchdog
It might solve your problem.
If a timeout occurs, HTTPMOD does not update the reading. The watchdog can watch if a reading is not updated for a defined time and then reacts on this.

regards,
    Stefan