https://github.com/lab11/esp32-gateway
ESP32-Based Gateway for PowerBlade Deployments
https://github.com/lab11/esp32-gateway
Last synced: 5 months ago
JSON representation
ESP32-Based Gateway for PowerBlade Deployments
- Host: GitHub
- URL: https://github.com/lab11/esp32-gateway
- Owner: lab11
- Created: 2018-12-06T19:58:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T12:07:51.000Z (over 3 years ago)
- Last Synced: 2025-01-19T10:43:35.868Z (over 1 year ago)
- Language: C
- Size: 445 KB
- Stars: 3
- Watchers: 17
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ESP32 Gateway
=============
Source and configuration tools for an ESP32-based gateway.
The [Espressif ESP32](https://www.espressif.com/en/products/hardware/esp32/overview) is an SoC with integrated Bluetooth and Wi-Fi.
We test and deploy the software on the [SparkFun ESP32 Thing](https://www.sparkfun.com/products/13907).
The software for the gateway consists of a number of separate services.
- Configuration of Wi-Fi credentials via Bluetooth when Wi-Fi is not yet connected
- Serial logging of [PowerBlade](https://github.com/lab11/powerblade) data parsed from BLE advertisements
- Forwarding of PowerBlade data to a configurable Influx endpoint
- Serving of tools and settings as a web portal on the local network
The [ESP32 Applications repo](https://github.com/lab11/esp32-apps) contains single-purpose applications that demonstrate or test most of these services, as well as a number of other miscellaneous applications.
Setup
-----
To set up the software environment on your machine, follow the [Espressif documentation](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html).
Connect the device via USB and [find the appropriate serial port](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/establish-serial-connection.html#check-port-on-linux-and-macos).
While in the ESP32 Gateway repo, `idf.py menuconfig` can be used to access the configuration menu, and optionally set default Wi-Fi credentials and InfluxDB endpoint. Hit `Q` to exit.
Wi-Fi and InfluxDB credentials can also be changed after the gateway is programmed using a phone or browser. View [startup guide](https://docs.google.com/presentation/d/1h3oxfZpgNazQ42Ug1GeqB8SHxXWLkpt178d12G6gJQw/edit?usp=sharing) for instructions.
Run
---
Use `idf.py -p flash monitor` to generate necessary files, build the project, flash the binary to the device, and display serial output from the device.
Hit `CTRL + ]` to halt serial monitoring.
View [startup guide](https://docs.google.com/presentation/d/1h3oxfZpgNazQ42Ug1GeqB8SHxXWLkpt178d12G6gJQw/edit?usp=sharing) for tips on configuring and deploying the programmed gateway with PowerBlades.