Skip to content

Commit 1b701dc

Browse files
committed
add comments to platformio.ini
more work on readme
1 parent 856c2bc commit 1b701dc

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

README.md

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,13 @@ There is also a manifest file which contains the app name to use when adding the
212212
}
213213
```
214214

215-
216-
217-
*******
218-
219-
## Software Overview
220-
221-
### Back End
215+
## Back End Overview
222216

223217
The back end is a set of REST endpoints hosted by a [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) instance. The source is split up by feature, for example [WiFiScanner.h](src/WiFiScanner.h) implements the end points for scanning for available networks.
224218

225-
There is an abstract class [SettingsService.h](src/SettingsService.h) that provides an easy means of adding configurable services/features to the device. It takes care of writing the settings as JSON to SPIFFS. All you need to do is extend the class with your required configuration and implement the functions which serialize the settings to/from JSON. JSON serialization utilizes the excellent [ArduinoJson](https://github.com/bblanchon/ArduinoJson) library. Here is a example of a service with username and password settings:
219+
There is an abstract class [SettingsService.h](src/SettingsService.h) that provides an easy means of adding configurable services/features to the device. It takes care of writing the settings as JSON to SPIFFS. All you need to do is extend the class with your required configuration and implement the functions which serialize the settings to/from JSON. JSON serialization utilizes the excellent [ArduinoJson](https://github.com/bblanchon/ArduinoJson) library.
220+
221+
Here is a example of a service with username and password settings:
226222

227223
```cpp
228224
#include <SettingsService.h>
@@ -286,21 +282,6 @@ void reconfigureTheService() {
286282

287283
```
288284

289-
### Front End
290-
291-
The front end is a bit of a work in progress (as are my react skills), but it has been designed to be a "mobile first" interface and as such should feel very much like an App.
292-
293-
I've tried to keep the use of libraries to a minimum to reduce the artefact size (it's about 150k gzipped ATM).
294-
295-
## Future Improvements
296-
297-
- [x] Reduce boilerplate in interface
298-
- [ ] Provide an emergency config reset feature, via a pin held low for a few seconds
299-
- [x] Access point should provide captive portal
300-
- [ ] Perhaps have more configuration options for Access point: IP address, Subnet, etc
301-
- [ ] Enable configurable mDNS
302-
- [x] Introduce authentication to secure the device
303-
304285
## Libraries Used
305286

306287
* [React](https://reactjs.org/)

platformio.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@
77
;
88
; Please visit documentation for the other options and examples
99
; http://docs.platformio.org/page/projectconf.html
10+
1011
[env:node32s]
1112
platform = espressif32
1213
board = node32s
1314

1415
framework = arduino
16+
monitor_speed = 115200
17+
18+
; Uncomment & modify the lines below in order to configure OTA updates
1519
;upload_flags = --port=8266 --auth=esp-react
1620
;upload_port = 192.168.0.6
17-
monitor_speed = 115200
1821

1922
build_flags=
2023
-D NO_GLOBAL_ARDUINOOTA
21-
-D ENABLE_CORS
24+
; Uncomment ENABLE_CORS to enable Cross-Origin Resource Sharing (required for local React development)
25+
;-D ENABLE_CORS
2226
-D CORS_ORIGIN=\"http://localhost:3000\"
2327
lib_deps =
2428
NtpClientLib@>=2.5.1,<3.0.0

0 commit comments

Comments
 (0)