[SOLVED] Automatic GPIO High, after few seconds
Posted: 26 Jul 2016, 08:57
Hello,
Continue with my test of ESPEasy and mqtt, i want to publish by openhab to mqtt to switch on GPIO2 on device with ESPEasy.
After configuring and touch many configurations in ESP Easy, i decided to reset device, to begin from 0 (i did it by rule like this):
and worked because i tourned to R108.
After rebooting device, i update to R113, and then I configure, IP device, mqtt server, and devices (rules are all 0): In hardware menu, i have PIN 2 like default.
Well, when i switch on device, led in GPIO Switch on. and then by http i turn it off, becaue i want begin with my test.
I dunno why, after a few seconds, after turning off led by http, himself turn it on automatic, there are logs:
I dunno why, each time when device lost connection to broker and connect again, always switch to 1 GPIO 2.
maybe is a bug on R113? Why this occurs?
thanks
Continue with my test of ESPEasy and mqtt, i want to publish by openhab to mqtt to switch on GPIO2 on device with ESPEasy.
After configuring and touch many configurations in ESP Easy, i decided to reset device, to begin from 0 (i did it by rule like this):
Code: Select all
On System#Boot do
publish /nodemcu/cmd reset
reset
endon
After rebooting device, i update to R113, and then I configure, IP device, mqtt server, and devices (rules are all 0): In hardware menu, i have PIN 2 like default.
Well, when i switch on device, led in GPIO Switch on. and then by http i turn it off, becaue i want begin with my test.
I dunno why, after a few seconds, after turning off led by http, himself turn it on automatic, there are logs:
Code: Select all
EVENT: Clock#Time=Tue,08:36
SW : GPIO 2 Set to 0 ====> set by http://IP_device/control?cmd=GPIO,2,0
SW : State 0
EVENT: subir#Switch=0.00
SW : State 0
EVENT: bajar#Switch2=0.00
HTTP : Delay 999 ms
MQTT : Topic: /nodemcu/subir/Switch
MQTT : Payload: 0
MQTT : Topic: /nodemcu/bajar/Switch2
MQTT : Payload: 0
WD : Uptime 10 ConnectFailures 11 FreeMem 29416
WD : Uptime 10 ConnectFailures 10 FreeMem 29648
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /nodemcu/#
MQTT : Topic: /nodemcu/subir
MQTT : Payload: 1
MQTT : Topic: /nodemcu/bajar
MQTT : Payload: 1
MQTT : Topic: /nodemcu/gpio/2
MQTT : Payload: 1
SW : GPIO 2 Set to 1
SW : State 1
EVENT: subir#Switch=1.00
SW : State 1
EVENT: bajar#Switch2=1.00
HTTP : Delay 999 ms
MQTT : Topic: /nodemcu/subir/Switch
MQTT : Payload: 1
MQTT : Topic: /nodemcu/bajar/Switch2
MQTT : Payload: 1
EVENT: Clock#Time=Tue,08:37
WD : Uptime 11 ConnectFailures 12 FreeMem 29400
WD : Uptime 11 ConnectFailures 11 FreeMem 29632
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /nodemcu/#
maybe is a bug on R113? Why this occurs?
thanks