/**IPC 5.x使用http_gw_ipc_custom_msg()接口*IPC 6.x使用tuya_http_gw_ipc_custom_msg()接口*/OPERATE_RETtest_report_mac_api(){ty_cJSON*result=NULL;CHAR_Tbuffer[32] = {0};NW_MAC_Sbuffer_mac;tal_wifi_get_mac(WF_STATION, &buffer_mac);snprintf(buffer, sizeof(buffer), "{\"mac\":\"%02X%02X%02X%02X%02X%02X\"}",buffer_mac.mac[0], buffer_mac.mac[1], buffer_mac.mac[2],buffer_mac.mac[3], buffer_mac.mac[4], buffer_mac.mac[5]);OPERATE_RETret=tuya_http_gw_ipc_custom_msg("thing.device.mac.report", "1.0", buffer, &result);if(result) {ty_cJSON_Delete(result);}PR_DEBUG("Upload mac%s, ret:%d", buffer,ret);returnret;}
该内容对您有帮助吗?
是意见反馈点击获取服务和帮助
智能客服
400-881-8611
提交工单