SendToHTTP to its own environment does not work
Posted: 26 Sep 2022, 10:47
It looks like that the SendToHTTP -in Rules- does not work for hiss own ESPeasy-environment .
To test this isseu, I used the commands:
SendToHTTP 192.168.2.10,80,/control?cmd=pcd8544cmd,backlight,1
SendToHTTP 192.168.2.10,80,/control?cmd=GPIO,12,1
192.168.2.10 is the ip of the environment of the Rules.
Result in the log is:
1075861: ACT : SendToHTTP 192.168.2.10,80,/control?cmd=pcd8544cmd,backlight,1
1080868: HTTP : SendToHTTP 192.168.2.10 GET... failed HTTP code: -1 connection refused
1080872: ACT : SendToHTTP 192.168.2.10,80,/control?cmd=GPIO,12,1
1085879: HTTP : SendToHTTP 192.168.2.10 GET... failed HTTP code: -1 connection refused
If i use the ip of another ESPeasy then the SendToHTTP command works correct and the result in the log is :
902971: ACT : SendToHTTP 192.168.2.7,80,/control?cmd=pcd8544cmd,backlight,1
903016: HTTP : SendToHTTP 192.168.2.7 GET... HTTP code: 200
903026: ACT : SendToHTTP 192.168.2.7,80,/control?cmd=GPIO,12,1
903080: HTTP : SendToHTTP 192.168.2.7 GET... HTTP code: 200
903092: EVENT: http#192.168.2.7=200
903106: EVENT: http#192.168.2.7=200
A bug......?!
To test this isseu, I used the commands:
SendToHTTP 192.168.2.10,80,/control?cmd=pcd8544cmd,backlight,1
SendToHTTP 192.168.2.10,80,/control?cmd=GPIO,12,1
192.168.2.10 is the ip of the environment of the Rules.
Result in the log is:
1075861: ACT : SendToHTTP 192.168.2.10,80,/control?cmd=pcd8544cmd,backlight,1
1080868: HTTP : SendToHTTP 192.168.2.10 GET... failed HTTP code: -1 connection refused
1080872: ACT : SendToHTTP 192.168.2.10,80,/control?cmd=GPIO,12,1
1085879: HTTP : SendToHTTP 192.168.2.10 GET... failed HTTP code: -1 connection refused
If i use the ip of another ESPeasy then the SendToHTTP command works correct and the result in the log is :
902971: ACT : SendToHTTP 192.168.2.7,80,/control?cmd=pcd8544cmd,backlight,1
903016: HTTP : SendToHTTP 192.168.2.7 GET... HTTP code: 200
903026: ACT : SendToHTTP 192.168.2.7,80,/control?cmd=GPIO,12,1
903080: HTTP : SendToHTTP 192.168.2.7 GET... HTTP code: 200
903092: EVENT: http#192.168.2.7=200
903106: EVENT: http#192.168.2.7=200
A bug......?!