- Tue Apr 12, 2016 11:31 pm
#45400
Hello, I'm using this library -->https://github.com/esp8266/Arduino and i'm trying to implement an small personal project using an esp8266 -- ESP-12 module, the project consists in activate/deactivate relay using a button, and notify to an MQTT Server the status (activate/deactivate) on every button press, so, my question is if exists some form to use WifiClient in async mode, because some times the connect method blocks the button (activate/deactivate relay) logic, for example, some publish to MQTT server blocks a little the button logic like a lag, or for example if the MQTT server IP is down, then the button logic is blocked for long times because the connect method of WifiClient class is trying to connect.
I found this issue -->
https://github.com/esp8266/Arduino/pull/709 that refers to the async issue, but i can't found this implementation in the last release code of the library...
Am doing something wrong ? or can i implement this project differently ?
Thanks,