Greetings! I am using some simple ESP8266 devices (they are actually ESP12 devices) to send temperature info to my Wia dashboard every 30 seconds. So far, this works great!
Using a separate example, my ESP12 can ALSO receive commands from Wia with no problems.
NOW, I'm trying to do both:
I want to post some temperature data TO wia (using the "postToWia" function with the httpClient), and then I want to call the mqtt_client.loop function to check if I have commands waiting for me:
delay(30000); //Eventually, this will be replaced by a 30 second deep sleep, to save battery power
When I try the above code, the temperature data is still sent to Wia, but the commands seem to get "lost" (the ESP12 no longer receives any commands from Wia).
Is my above loop correct, or am I missing something?