I want to send HTTP request from server to nodeMCU. Such request contain event call defined in rule. It is kind of watchdog. If nodeMCU will hang (because still sometimes occurs WiFi issue), rule reboot it. But the most strange thing is that it works for me in all another nodeMCU`s, but in this new one - no. The same SW - normal mega-20190827, the same HW. I just copy/paste rules but still HTTP request send via wget from server does not work on this particular unit. Wget shows OK as the result of transmission to nodeMCU. Below wget syntax and rule it should run in nodeMCU:
Code: Select all
wget -q -P /home/pi/ramdisk --delete-after --connect-timeout=2 --tries=5 "http://<ip>/control?cmd=event,$event"
# $event could be alive, reboot_on or reboot_off
Code: Select all
on alive do
timerSet,7,1000
EndOn
on reboot_off do
Let,16,1
endon
on reboot_on do
Let,16,0
endon
on Rules#Timer=7 do
if %v16% = 0
Reboot
endif
endon
I cleared flash using blank FW and downloaded config and rules again. What I have to do or check else?
Sensors defined:
- dummy quad
- 4x20 display
- generic uptime
- DS18b20
Additionally buzzer.