Closed SubhodipRoy161101 closed 2 years ago
@SubhodipRoy161101 , there is no API that gives this information directly, but your application code can use the RMAKER_MQTT_EVENT_CONNECTED and RMAKER_MQTT_EVENT_DISCONNECTED events to track the connectivity as you can see here.
I would like to know which function would tell us if the device is connected to the cloud or not. It would simply check if esp32 is connected to the cloud and return true if it is connected and return false if it is not connected.