--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
You could handle the connection lost event in a callback. http://www.eclipse.org/paho/files/mqttdoc/Cclient/pubasync.html
On Fri, Aug 26, 2016 at 4:31 PM, Shantanu Jagtap <shantanu.j...@gmail.com> wrote:
Hi,I am trying to run a device as a mqtt client and also as a webserver. I am working with NodeMcu esp826612E. It supports arduino ide.Now, I have been able to connect to the mqtt broker AND also run as a webserver.My problem is, I need to start the webserver ONLY when Mqtt broker is absent. How do i do that? I am guessing PING is the best option.If i receive a PING bak, mqtt broker is connected.If no PING received, Start as a webserver and accept http requests.How do I write this code for PING? There isnt much documentation on PING on the net. Please help.
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.