I have an ESP8266, which connects to an MQTT broker, my PHP web application subscribes to this topic and does publish. I need to know the status of the board in real time, whether it is online or offline.
Because if it is offline, I can not allow user actions in my web application for this board.
How can I do this ?