GithubHelp home page GithubHelp logo

liguichuan / esp32-onenet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chunhuajiang/esp32-onenet

0.0 0.0 0.0 82 KB

ESP32 通过 MQTT 连接到**移动物联网云平台 OneNET

License: Apache License 2.0

Makefile 11.61% C 88.39%

esp32-onenet's Introduction

esp32-onenet

ESP32 通过 MQTT 连接到**移动物联网云平台 OneNET

应用展示 - https://open.iot.10086.cn/appview/p/1c77653399eb0cdde908b7e1faf1c1aa

子模块

ESP32 MQTT 组件库

功能列表

  • 连接鉴权
  • 心跳包
  • 数据上报(QoS0, QoS1, QoS2)
  • 创建 Topic
  • 订阅/取消订阅
  • 平台命令处理(QoS0)
  • 离线 Topic
  • 数据点订阅
  • 动态接入设备
  • 批量接入设备

快速体验

如果你已对oneNET有一定的了解,且能够使用 ESP-IDF 编译 hello-world,则可以按照下面的步骤快速体验。

  • 登录oneNET,依次创建产品,添加设备,设置鉴权信息。记录下产品ID、设备ID和鉴权信息。
  • 创建一个数据流,并记录下该数据流的名称。
  • 修改本仓库源代码目录下的config.h文件,主要包括:
    • WIFI_SSID - esp32需要连接到的AP的ssid。
    • WIFI_PASS - esp32需要连接到的AP的密码。
    • ONENET_DEVICE_ID - 云平台所创建设备的设备ID。
    • ONENET_PROJECT_ID - 云平台所创建的产品的产品ID。
    • ONENET_AUTH_INFO - 自己设置的鉴权信息。
    • ONENET_DATA_STREAM - 自己所创建的数据流的名称。
  • 编译工程:
    • 指定 ESP-IDF 所在路径:export IDF_PATH=/你的/ESP/IDF/所在的/路径
    • 编译&烧写:make & make flash

esp32-onenet's People

Contributors

chunhuajiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.