DSCKGEC/cleanurge-mcu

Write logic for the HTTP

开放

#10 创建于 2021年6月15日

 (0 条评论) (0 个反应) (0 位负责人)C++ (7 个派生)auto 404
help wanted

仓库指标

星标
 (6 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Check out Cleanurge Backend Docs for detailed information about all the routes. All the appropriate routes along with their HTTP methods are commented in PIO-Arduino/src/main.cpp methods shown below:

  1. void send_http_alive(): Makes a get request with the Device ID and receives the waste threshold and update it, this has to be done more frequently to stay updated
  2. void send_data_http(): Sends the waste level to the server (along with the location once on boot, check booted flag state to do this "once in boot" event), this has to be done every 'n' hours, check the value of http_timing.

贡献者指南