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, developers must delete the configuration information about the directly connected device and release all resources. When the device restarts, developers must bind the device to the IoT platform again.
API Description
1 |
IOTA_TOPIC_CMD_UNBIND_RECEIVE;
|
Parameter Description
None
Output
None
Example
1 2 3 4 5 6 7 |
//Developers call this API to register the function 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;
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot