You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the platform and libraries are downloaded the back end should be compiling.
49
49
50
50
> **WINDOWS BUILDS**: If building under Windows you need to delete .piolibdeps/Time/Time.h - due to a [file system case insensitivity issue](https://github.com/me-no-dev/ESPAsyncWebServer/issues/96)
51
51
52
52
#### Uploading the firmware
53
53
54
-
Standard configuration settings, such as build flags, libraries and device configuration can be found in ['platformio.ini'](platformio.ini). The project is configured to upload via serial by default, you can change the upload mechanism to OTA by uncommenting the relevant lines.
54
+
The project is configured to upload over a serial connection by default. You can change this to use OTA updates by uncommenting the relevant lines in ['platformio.ini'](platformio.ini).
55
55
56
-
See the [PlatformIO docs](http://docs.platformio.org/en/latest/projectconf.html) for full details on what you can do with this.
56
+
The firmware may be uploaded to the device by pressing the "Upload" button:
57
57
58
-
Click the upload button in PlatformIO, or type the upload command if prefer the command line approach:
The interface has been configured with create-react-app and react-app-rewired so the build can customized for the target device. The large artefacts are gzipped and source maps and service worker are excluded from the production build. This reduces the production build to around ~200k, which easily fits on the device.
@@ -89,9 +89,21 @@ npm run build
89
89
90
90
> **Note**: The build command will also delete the previously built interface, in the ['data/www'](data/www) directory, replacing it with the freshly built one ready to upload to the device.
91
91
92
+
#### Uploading the file system image
93
+
94
+
The compiled user interface may be uploaded to the device by pressing the "Upload File System image" button:
You can run a local development server during development to preview changes to the front end them without the need to upload a file system image to the device after each change.
106
+
You can run a local development server to allow you preview changes to the front end without the need to upload a file system image to the device after each change. Run the standard npm start command to start the development server:
0 commit comments