https://github.com/kernelerr/harmonyos_airquality
使用鸿蒙系统制作的空气质量检测器。
https://github.com/kernelerr/harmonyos_airquality
Last synced: about 2 months ago
JSON representation
使用鸿蒙系统制作的空气质量检测器。
- Host: GitHub
- URL: https://github.com/kernelerr/harmonyos_airquality
- Owner: KernelErr
- License: apache-2.0
- Created: 2021-04-24T09:00:48.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-28T13:32:23.000Z (about 5 years ago)
- Last Synced: 2025-12-26T07:48:05.813Z (6 months ago)
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Air Quality Detector on HarmonyOS
使用鸿蒙系统开发的嵌入式空气质量检测器,每两秒读取传感器数据并通过MQTT协议上传到OneNET平台,请将代码放于`applications/BearPi/BearPi-HM_Nano/sample/air_quality`。
硬件清单:
- BearPi-HM_nano
- CJ702 (空气质量传感器)
## 编译&烧录
安装[hpm](https://www.npmjs.com/package/@ohos/hpm-cli)进行编译和项目管理,利用HiBurn软件烧录即可,环境搭建可参考[鸿蒙开发板初探——BearPi-HM Nano](https://www.lirui.tech/2020/dca553965da4/)。
```bash
hpm dist
```