Arduino project to monitor the water level in a dam and send the data to a server.
- Install the PlatformIO extension for Visual Studio Code.
- Open the project folder in Visual Studio Code.
- Copy the credentials.example.hpp files and rename it to credentials.hpp.
- Set your credentials and specify your configurations in the credentials.hpp and config.hpp files respectively.
- Build the project.
- Press
F1
to open the command palette and typePlatformIO: Build
.
- Press
- Upload the code to the board.
- Press
F1
to open the command palette and typePlatformIO: Upload
.
- Press
You can test the code by running the server.py script. It will log the data sent by the board to the console if your address in the config.hpp file is set to either localhost
or IP address
of the machine running the script.