c语言解析{"method":"thing.event.property.post","id":"1217518139","params":{"TargetTemperature":35},"version":"1.0.0"接收并解析这段数据
时间: 2023-07-31 17:07:53 浏览: 145
c语言解析教程
4星 · 用户满意度95%
根据引用\[2\]中的代码,可以看出在wifi_connnect_calback函数中进行了数据解析的操作。在这个函数中,通过判断字符串数组中是否有特定的三位字符与motorstatus属性吻合,从而解析出对应的属性值。所以,要解析{"method":"thing.event.property.post","id":"1217518139","params":{"TargetTemperature":35},"version":"1.0.0"}这段数据,你可以在wifi_connnect_calback函数中添加相应的判断逻辑,以解析出TargetTemperature属性的值。具体的代码实现可以参考引用\[2\]中的示例代码。
#### 引用[.reference_title]
- *1* *3* [在linux下使用C语言实现MQTT通信(四.上传至阿里云服务器)](https://blog.csdn.net/qq_44041062/article/details/97046298)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【ESP-01S / ESP8266 AT指令连接阿里云物联网平台】](https://blog.csdn.net/qq_44857700/article/details/130912927)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文