espressif / esp-qcloud

基于 ESP-IDF 原生开发接入腾讯 IoT Explorer,支持 ESP32/ESP32S2,快速实现腾讯连连控制。
Apache License 2.0
68 stars 34 forks source link

云端收到了event 但是串口那边显示 post event failed, reasom code 404 是怎么回事呢 #29

Open SmallXieGithub opened 2 years ago

shixinke-orion commented 2 years ago

这个错误码是云端返回的。

SmallXieGithub commented 2 years ago

请问怎么解决呢?或者说有没有关于event 的使用示例呢

shixinke-orion commented 2 years ago

先在云端创建好相关事件模型, 设备侧通过 esp_qcloud_iothub_create_event 创建上报句柄,随后调用 esp_qcloud_iothub_param_add_x 添加相关参数,最后调用 esp_qcloud_iothub_post_method 上报即可。