With this commit the webserver of the controller can serve a folder (/react-app/build/), when the ip is accessed in a web-browser. Currently the react app is successfully served and the armchair can be controlled when in HTTP mode and connected via AP. - CMakeLists: Add command that creates and flashes the spiffs partition when running idf.py flash - main.cpp: Add function to initialize spiffs - http.cpp: uncomment handler for default URL (accesses spiffs) - Add partitions.csv: needed for the creation of spiffs.bin during compilation - Add sdkconfig: It was necessary to change the FLASH_SIZE from 2MB to 4MB. To avoid having the same trouble on other devices the sdkconfig is now added to the repository
6 lines
304 B
CSV
6 lines
304 B
CSV
# Name, Type, SubType, Offset, Size, Flags
|
|
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
|
|
nvs, data, nvs, , 0x6000,
|
|
phy_init, data, phy, , 0x1000,
|
|
factory, app, factory, , 1M,
|
|
spiffs, data, spiffs, , 1M |