Updated on 2022-02-24 GMT+08:00

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;