Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write logic for the HTTP #10

Open
anindyamitra15 opened this issue Jun 15, 2021 · 0 comments
Open

Write logic for the HTTP #10

anindyamitra15 opened this issue Jun 15, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@anindyamitra15
Copy link
Member

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.
@anindyamitra15 anindyamitra15 added the help wanted Extra attention is needed label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant