1 Star 1 Fork 0

G.L.Wang / jc-io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

jc-io


Canary & JC-IO

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.

Note

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 chart

Setup

cause this project relies a submodule named Lily, run the following commands before you start your working.

git submodule init
git submodule update

About this project

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.

Support Drive (so far)

  • DHT11
  • BMP280
  • VL53L0X
  • IR Receiver

空文件

简介

A smart node in a IOT network, based on MQTT, working on ESP8266. The version running on STM32 MCUs are also available in branch "jc-st" 展开 收起
C++ 等 4 种语言
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/eglwang/jc-io.git
git@gitee.com:eglwang/jc-io.git
eglwang
jc-io
jc-io
master

搜索帮助