How cy035/new works
This repository implements a medicine-box IoT system: embedded firmware gathers health and gas readings, exchanges data over SLE, and reports to a cloud IoT service; a WeChat mini-program displays reported measurements and can publish commands. The main firmware workflow is visible in excerpts, as are the mini-program’s MQTT subscription and command publication. Several client, cloud, and gas-server internals are indexed but not excerpted, so uncertain links are omitted. The README provides no additional product capabilities.
Main entry points: client/app.c Device orchestration · health_server/app.c Health tasks · index.js Health dashboard · client.c SLE client
Components 19
Device firmware
- Device orchestration
hispark+liteos/client/app.c - Reading model
hispark+liteos/client/app.h
Sensing and SLE
- SLE client
hispark+liteos/client/client.c - Health tasks
hispark+liteos/health_server/app.c - Heart sensor
hispark+liteos/health_server/heart.c - Temperature sensor
hispark+liteos/health_server/JX90614.c - Health SLE service
hispark+liteos/health_server/server.c - Health advertising
hispark+liteos/health_server/server_adv.c - Gas SLE service
hispark+liteos/gas_server/server.c - Gas advertising
hispark+liteos/gas_server/server_adv.c - Gas service app
hispark+liteos/gas_server/app.c
Cloud connectivity
- IoT runtime
hispark+liteos/client/iot_main.c - IoT profile
hispark+liteos/client/iot_profile.c - Wi-Fi connection
hispark+liteos/client/connect.c
Mini-program
- Health dashboard
hispark+liteos/小程序/pages/index/index.js - MQTT utility
hispark+liteos/小程序/utils/mqtt.js - Logs page
hispark+liteos/小程序/pages/logs/logs.js
Other components
- Medicine box
- IoT cloud
Connections 19
- Medicine box → Device orchestration: runs on
hispark+liteos/client/app.c - Device orchestration → SLE client: starts task
hispark+liteos/client/app.c - Device orchestration → IoT runtime: starts runtime
hispark+liteos/client/app.c - Device orchestration → IoT profile: reports readings
hispark+liteos/client/app.c - Device orchestration → Wi-Fi connection: checks connection
hispark+liteos/client/app.c - Device orchestration → Reading model: formats readings
hispark+liteos/client/app.c - Health tasks → Health SLE service: starts service
hispark+liteos/health_server/app.c - Health tasks → Heart sensor: starts measurement
hispark+liteos/health_server/app.c - Health tasks → Temperature sensor: reads temperature
hispark+liteos/health_server/app.c - Health SLE service → Health advertising: initializes advertising
hispark+liteos/health_server/server.c - Gas SLE service → Gas advertising: initializes advertising
hispark+liteos/gas_server/server.c - Gas service app → Gas SLE service
- SLE client → Health SLE service: receives notifications
- SLE client → Gas SLE service: receives notifications
- IoT runtime → IoT profile
- IoT profile → IoT cloud: publishes telemetry
- Health dashboard → MQTT utility: uses client
hispark+liteos/小程序/pages/index/index.js - Health dashboard → IoT cloud: subscribes and publishes
hispark+liteos/小程序/pages/index/index.js - Health dashboard → Logs page
hispark+liteos/小程序/pages/logs/logs.js