Check connection between ESP32 and Desktop app
Posted: Thu Mar 10, 2022 5:24 am
Hi all,
I'm making an application that connects ESP32 and Desktop app via local wireless LAN network.
My ESP32 module will collect data and publish it to a local broker (MQTT) that run on a computer (the same with computer run my Desktop app). My Desktop app subscribes to broker and stores data published by the ESP32. Note that ESP32 will not publish data periodically .
My problem is that I need to know that every time the connection is lost (due to network problems, power off,...) both the ESP32 and the Desktop app recognize it as fast as possible.
Can anyone give me a solution? Thanks !
I'm making an application that connects ESP32 and Desktop app via local wireless LAN network.
My ESP32 module will collect data and publish it to a local broker (MQTT) that run on a computer (the same with computer run my Desktop app). My Desktop app subscribes to broker and stores data published by the ESP32. Note that ESP32 will not publish data periodically .
My problem is that I need to know that every time the connection is lost (due to network problems, power off,...) both the ESP32 and the Desktop app recognize it as fast as possible.
Can anyone give me a solution? Thanks !