A smart node in a IOT network, based on MQTT, working on ESP8266.
The node is designed to collect sensor data and upload to cloudy, also it has the ability to excute commands dispatched from cloudy or other nodes (thanks to the contribution of Lily), which makes the node can interact with other nodes, so it looks so intellgent.
The branch "jc-st" implements same functions via paho-mqtt, but on STM32, the testing board is STM32G491.
This project, named "jc-io", is created as a partition of project "Canary", which is aiming to build a IOT pivot based MQTT protocol. The Canary is almost finished and you can visit the homepage of Canary for detail.
Here we give a screenshot from Canary
cause this project relies a submodule named Lily, run the following commands before you start your working.
git submodule init
git submodule update
This project "jc-io" is only working on ESP8266, the branch "jc-st" however works on any ST32 MCU.
jc-io is build on platformIO, but you can easily rebuild it in Arduino-IDE, just need a few works.
Some sensor like DHT11 and BMP280 are built in supported in jc-io, you can use them directory without writeing any code, but for others you may need to write the drives in youself, you can find the interface in sensor.cpp.
By default, the node assumes a DHT11 was connected at pin D2(you can set the pin by send a command like
sensor dht11:d5
to change the pin to D5).
The program has a mechanism call "glitch policy", it works if a sensor works abnormally, and the policy tells the program what to do if a glitch occurred, like power off, do nothing, or report a error.
If the node fails to read the data from DHT11 for 5 times continuesly, it will send a glitch warning and power itself off automatically by default, you can set the policy to stop that however.
Right now, JC-IO has supported for Mi Home with the help of bemfa cloud, that make you can retrieve sensor data by just asking XiaoAI (Xiaomi's voice assistant), or other platform's assistant.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。