Skip to main content

04 - Remote code upload

Uploading is done with Visual Studio Code (VS) using the PlatformIO tab

image-1648136519736.png

your code being already present on the router, you can now directly generate the binary files to be sent.
In general, only the General Build is to be done.
The Build Filesystem Image is only there to update the HTML pages when functionalities evolve.

image-1648136931479.png

once the build is done:

image-1648137170040.png

it shows where the firmware is.

all you have to do is connect with the internet browser on your pv router and go to the /update page

image-1648137301517.png

and upload the firmware

Case of a Filesystem update

In the case of updating the Filesystem ( HTML file ), it's the same procedure, you just have to take the Filesystem binary and select Filesystem.

Warning: before uploading it is important to check that the data/wifi.json file is present on your repository and contains the connection information to your internet box.

it is also preferable before the update to save its configuration by going to the /config.json web page and copy/paste the information into the config.json of your repository (or save it in a third-party file)