https://github.com/benschlegel/plantsense-microcontroller
https://github.com/benschlegel/plantsense-microcontroller
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/benschlegel/plantsense-microcontroller
- Owner: benschlegel
- Created: 2023-06-03T13:15:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T14:23:33.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T20:30:11.777Z (4 months ago)
- Language: C++
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PlantSense microcontroller
This project contains the source code of the microcontroller of the [PlantSense](https://github.com/benschlegel/PlantSense-app) project. It is intended to be flashed on an `esp32` microcontroller.
## Setup
After cloning the project, open `plantsense_microcontroller/plantsense_microcontroller.ino` in `Arduino IDE`. Instructions on how to set up the `Arduino IDE` (download [here](https://www.arduino.cc/en/software)) to work with the `esp32` can be found [here](https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/).
## Functionality
By default, the microcontroller stays in `setup`-mode. A wifi access point is opened that devices can connect to and set up credentials and a host.
Once configured, the `esp32` tries to connect to a wifi using stored credentials. When the connection is successful, it connects to the server specified by host and registers itself.
Additionally, it also hosts its own webserver on port `80`, that the server can use to send requests.
Full documentation coming soon.