-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscribe is poorly documented #276
Comments
For context, I use a button to publish a message to start a fan for a few minutes. NodeRed subscribes and manages that. When the time is up, NodeRed publishes a resume message, which the ESP8266 should subscribe to. Capturing that message will allow code on the ESP8266 to reset the mode to normal, where the fan is controlled by a humidity sensor. The button is basically a timed override to get rid of cooking/bathroom smells where humidity is low, while the standard mode requires no user input, to clear steam/humidity. |
Your FullyFeatured-ESP8266.ino is the nearest example I've found but
You have Also, there's nothing in the I think this is a great library. It's just that I am a UXer not a programmer and I need the examples to be complete and easy. I'm sure there will be others out there who'd appreciate that little extra too. Thanks in advance :-D |
This is Async library, based on AsyncTCP so there is nothing in the loop() and given callbacks are called asynchronously. There are some limitations in this approach (no delay() in the callback, etc.) so please read also all documentation for the AsyncTCP library. The |
Please will you provide at least ONE well commented example of the use of
mqttClient.subscribe
all the way through to consuming a message on a subscribed topic and covering where the subscribe goes (is it in thesetup()
function?) and how the message arrives during the execution of theloop()
function and how to capture it?The text was updated successfully, but these errors were encountered: