How to unbind a device with no internet connection?
Views: 5676 Author: Site Editor Publish Time: 2021-05-10 Origin: Site
How to unbind a device with no internet connection?
A device that becomes unbound when the internet is disconnected cannot be bound again.Do not calltuya_iot_gw_resetwhen the internet is disconnected. Make sure to check the network status before calling this API. Otherwise, the device is only unbound locally but remains in a bound state in the cloud. In this case, the device cannot be bound by scanning a QR code, but can only be discovered over LAN. Alternatively, you can unbind the device using the app and then bind it again.
The recommended logic:
The interface for real-time active acquisition of network disconnection judgment:
* @brief Get MQTT broker connection status * * @return TRUE on connected, FALSE on disconnected */BOOL_T get_mqc_conn_stat(VOID);