Skip to content

CODE AI

elRaulito edited this page Nov 17, 2020 · 1 revision

Flowchart

At the startup the ESP32 will start its own wifi, anyone with the password can connects to it and set the parameters using a webapp as dashboard. When the camera is activated from the dashboard the esp32 will connect to the wifi and start communicating with AI and Keepy posting to the Tangle.

Flowchart

Code

The code is divided in the following libraries:

  • camera.h With the functions to start the camera and take the pictures
  • connect.h With the functions to connect as AP or STA
  • fetch.h To make REST requests
  • server.h The library that routes the dashboard requests
  • tasks.h The library that defines the function that is executed continously

Clone this wiki locally