Unbinding a Device
API Function
This API is used to register the broadcast for receiving the command used to unbind a directly connected device from the IoT platform. After this broadcast is received, you must delete the configuration information about the directly connected device and release all resources. When the device restarts, bind the device to the IoT platform again.
API Description
1 | IOTA_TOPIC_CMD_UNBIND_RECEIVE;
|
Example
1 2 3 4 5 6 7 | //Call this API to unbind a directly connected device.
HW_iNT Gateway_UnbindRecvtHandler(HW_UiNT uiCookie, HW_MSG pstMsg)
{
// Delete Config file, free resources.
return 0;
}
//Register the function HW_BroadCastReg ("IOTA_TOPIC_CMD_UNBIND_RECEIVE", Gateway_UnbindRecvtHandler) during initialization;
|
Last Article: Binding a Device
Next Article: Configuring Login Parameters
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.