I have two boards, an Uno and a new esp8266 nodemcu, both set up as API. Ever since installing the beta version of the plugin (1.1.148) and setting up the new nodemcu board, I've been experiencing connection issues. The nodemcu board randomly disconnects and/or reconnects (even if it's not disconnected), approximately every hour or so. I'm also now losing connection to the Uno board, but much less frequently, whereas, prior to updating the plugin, the Uno had been pretty solid.
When connected, both boards are working very well. The Uno monitors several door sensors and motion sensors, and the esp8266 monitors aquarium water temperature and room temperature and humidity (DS18B20 and DHT11). I've set up both sketches to only report when values change, so as not to flood the plugin with data. Additionally, the nodemcu sketch will only send data to the HS plugin at most, every 2 seconds. As per the plugin instructions, this is accomplished with a timer, not a delay. There are no delays in my sketch.
The connection issues are a bit curious. With the esp8266, I have an OLED display attached, which displays the same info that I am sending to HS, updated at the same 2 second interval. I also have a line that displays connection status, based on the state of the 'isConnected' variable in the sketch. However, the OLED display and the HS displayed status do not always agree. Sometimes, both will display 'Connected', but data will not update. Other times, one might show 'Disconnected' while the other remains 'Connected'. In some cases (and I don't recall exactly which cases), one may display 'Disconnected' but data is still updated. Sometimes the plugin will reconnect after a minute or two, other times not, requiring a manual resetting of the board.
I've read other threads suggesting there are some connection issues with the plugin that are being worked on. I post my issues here to see if my issues are already known or are different. Also, is there any prediction on when an update will be released that might address these issues?
Thanks,
Mike
HS3 Pro Edition 3.0.0.435 (Windows)
Arduino Plugin 1.0.0.148
Arduino IDE 1.8.1
APIBoard1 - Uno
APIBoard2 - esp8266
When connected, both boards are working very well. The Uno monitors several door sensors and motion sensors, and the esp8266 monitors aquarium water temperature and room temperature and humidity (DS18B20 and DHT11). I've set up both sketches to only report when values change, so as not to flood the plugin with data. Additionally, the nodemcu sketch will only send data to the HS plugin at most, every 2 seconds. As per the plugin instructions, this is accomplished with a timer, not a delay. There are no delays in my sketch.
The connection issues are a bit curious. With the esp8266, I have an OLED display attached, which displays the same info that I am sending to HS, updated at the same 2 second interval. I also have a line that displays connection status, based on the state of the 'isConnected' variable in the sketch. However, the OLED display and the HS displayed status do not always agree. Sometimes, both will display 'Connected', but data will not update. Other times, one might show 'Disconnected' while the other remains 'Connected'. In some cases (and I don't recall exactly which cases), one may display 'Disconnected' but data is still updated. Sometimes the plugin will reconnect after a minute or two, other times not, requiring a manual resetting of the board.
I've read other threads suggesting there are some connection issues with the plugin that are being worked on. I post my issues here to see if my issues are already known or are different. Also, is there any prediction on when an update will be released that might address these issues?
Thanks,
Mike
HS3 Pro Edition 3.0.0.435 (Windows)
Arduino Plugin 1.0.0.148
Arduino IDE 1.8.1
APIBoard1 - Uno
APIBoard2 - esp8266
Comment