ESP32-C3 使用 MQTT 连接 ONENet 平台

上传者: 42328389 | 上传时间: 2024-04-05 21:48:13 | 文件大小: 44KB | 文件类型: ZIP
我的博文 《认识ESP-IDF-v4.3+工程结构(ESP32-C3应用调整示例)》最终工程结构, 使用 自己画的 ESP32-C3 开发板《自己画一块ESP32-C3 的开发板(立创EDA)(PCB到手)》 。 实现了 ESP32-C3 通过 MQTT 协议连接 ONENET 云平台,实现了数据的上传,平台的下行控制等功能 。 使用了ESP32-C3的 ADC采样, I2C接口, GPIO按键驱动,TIMG 硬件定时器,RMT这些功能,Wi-Fi 使用 Smart_config 的配网方式 。 同时对于 ESP-IDF-v4.3+工程结构进行了分析,使得结构更加规范,整洁。 是一个实际可用的物联网小应用实例,通过此案例,使得新朋友能够快速的使用ESP32-C3来实现自己的项目。

文件下载

资源详情

[{"title":"( 29 个子文件 44KB ) ESP32-C3 使用 MQTT 连接 ONENet 平台","children":[{"title":"tcp","children":[{"title":"sdkconfig <span style='color:#111;'> 34.59KB </span>","children":null,"spread":false},{"title":"mqtt_tcp_example_test.py <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"sdkconfig.ci <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":".devcontainer","children":[{"title":"Dockerfile <span style='color:#111;'> 932B </span>","children":null,"spread":false},{"title":"devcontainer.json <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"CMakeLists.txt <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"app_main.c <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"Kconfig.projbuild <span style='color:#111;'> 282B </span>","children":null,"spread":false}],"spread":true},{"title":"components","children":[{"title":"led_strip","children":[{"title":"include","children":[{"title":"led_strip.h <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"led_strip_rmt_ws2812.c <span style='color:#111;'> 6.08KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":true},{"title":"button","children":[{"title":"button_adc.c <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"iot_button.c <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"button_adc.h <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"my_button.h <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"button_gpio.h <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"iot_button.h <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"button_gpio.c <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"Kconfig <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"my_button.c <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"sht21","children":[{"title":"sht21.c <span style='color:#111;'> 10.31KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"sht21.h <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 82B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"settings.json <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"tasks.json <span style='color:#111;'> 10.75KB </span>","children":null,"spread":false},{"title":"c_cpp_properties.json <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明