A simple, extensible framework for getting up and running with the ESP8266/ESP32 microchip and a react front end.
Designed to work with the PlatformIO IDE with limited setup.
Designed to work with the PlatformIO IDE with limited setup.
This project supports ESP8266 and ESP32 devices, see build instruction below for more details.
## Why I made this project
@ -73,6 +75,30 @@ The endpoint root path can be found in Endpoint.js (./interface/src/constants/).
CORS can be enabled on the back end by uncommenting the -D ENABLE_CORS build flag in platformio.ini and re-deploying.
## Building for different devices
This project supports ESP8266 and ESP32 platforms however your target device will need at least a 1MB flash chip to support OTA programming.
By default this project is configured to build for the esp12e device. This is an esp8266 device with 4MB of flash. The following config in platformio.ini configures the build:
```
[env:esp12e]
platform = espressif8266
board = esp12e
```
If you want to build for an ESP32 device, all you need to do is re-configure playformio.ini with your devices settings:
```
[env:node32s]
platform = espressif32
board = node32s
```
Microcontroller ESP8266
Frequency 80MHz
Flash 4MBl
## Configuration & Deployment
Standard configuration settings, such as build flags, libraries and device configuration can be found in platformio.ini. See the [PlatformIO docs](http://docs.platformio.org/en/latest/projectconf.html) for full details on what you can do with this.