Hello,
i apologise in advance if my question is trivial and stupid, but I am a beginner in IoT and communications. I want to connect devices running an ESP8266 to the internet, via the MQTT protocol and control it with a smartphone etc. However, I have a small question regarding the status synchronisation of the devices. In the event that a smartphone or other device is outside the local network, I am unable to continuously monitor changes in the status of a device and update the switches in the application. The simplest solution seems to be to send a device status query to the server as soon as the smartphone is connected to the network, and then send the status information from each device to the server. I just wonder if this is really the right solution? It seems to me to be the best one, but I'd like to make sure so that I don't have problems later on with other devices running the same protocol.
Greetings!
i apologise in advance if my question is trivial and stupid, but I am a beginner in IoT and communications. I want to connect devices running an ESP8266 to the internet, via the MQTT protocol and control it with a smartphone etc. However, I have a small question regarding the status synchronisation of the devices. In the event that a smartphone or other device is outside the local network, I am unable to continuously monitor changes in the status of a device and update the switches in the application. The simplest solution seems to be to send a device status query to the server as soon as the smartphone is connected to the network, and then send the status information from each device to the server. I just wonder if this is really the right solution? It seems to me to be the best one, but I'd like to make sure so that I don't have problems later on with other devices running the same protocol.
Greetings!