该分支实现了 lit-ncov-report 项目的功能, 是本人一次对
esp8266
的探索性的开发.
用IOT(物联网)的方式实现健康状况管控平台(洛阳理工学院)的每日定时上报
用户配置文件在
include/config.h
// Default
#define CONFIG_PROJECT_CODE "litncov"
#define CONFIG_DEVICE_FW 0.3
#define CONFIG_WIFI_RETRY_TIME 10
// USER
#define CONFIG_LIT_HEALTH_USER "" //用户名
#define CONFIG_LIT_HEALTH_PWD "" //密码
#define CONFIG_SERVERCHAN_SCKEY "" //server酱推送密钥
// TASK
#define CONFIG_LIT_REPORT_TIME "00:02:00" //定时任务执行时间 (UTC+8)
默认使用上次上报记录的温度进行上报, 如需自定义请参考
src/main.cpp
当中的int litFirstRecord(char *user, char *psw, float temperature = 0.00, float temperatureTwo = 0.00, float temperatureThree = 0.00)
请确保 platformio 等依赖已正确安装
$ git clone https://github.com/icepie/esp-explore -b esp8266-arduino-litncov
$ make all
$ make upload
$ make monitor
-
该固件配网方式为
SmartConfig
, 可使用微信配网等方式让设备联网 -
配置正确即会在预设时间发送上报结果
待补充