设备管理 IOTDM(联通用户专用)-删除设备:示例

时间:2024-07-03 16:54:08

示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// 开发者调用该接口进行设备删除 
HW_cHAR *pcDeviceId = stDevice.pcDeviceId;
IOTA_HubDeviceRemove(HW_NULL, pcDeviceId);
结果处理 
HW_iNT Device_RemoveResultHandler(HW_UiNT uiCookie, HW_MSG pstMsg) 
{
    uiResult = HW_MsgGetUint (pstMsg, EN_IOTA_HUB_IE_RESULT);
    if (EN_IOTA_HUB_RESULT_SUC CES S != uiResult) 
    {
        // retry with uiCookie 
        return 0;
    }
    return 0;
}
HW_BroadCastReg(IOTA_TOPIC_HUB_RMVDEV_RSP, Device_RemovResultHandler);
support.huaweicloud.com/sdkreference-iot/iot_06_1118.html