-
Notifications
You must be signed in to change notification settings - Fork 1
04. Firmware Update
Once you have compiled the firmware in Visual Studio Code:
You'll need to use the 'espota' upload protocol in your platformio.ini configuration file:
upload_protocol = espota
upload_port = 192.168.X.Y
The upload_port IP needs to be the IP of your iotFeeder module on the same network than the one used by your computer. It is displayed on the OLED screen of your iotFeeder module:
If iotFeeder is not connected to your home wifi network, you may connect your computer to the iotFeeder wifi access point, and use 192.168.4.1 as upload_port.
You then need to open the config page of your module, which will be:
- http://192.168.X.Y/config on your home Wifi
- http://192.168.4.1/config when connected to iotFeeder wifi access point.
And click the "Upgrade Firmware" button at the bottom of the page. The display will then show this message: "OTA ready".
The module will remain in this stage for 3 minutes, after which if nothing happened it will stop waiting for OTA.
Then use the platformio commands to upload.
The display should then show an "Updating" message.
This is the easiest way to update the firmware using a provided build.
You will need to install the free ESP8266 Loader application.
Then download the ZIP version you want to use from https://github.com/reivaxy/iotFeeder/tags
Open the App, click on the first file selection field, and browse to the Download folder to find the downloaded ZIP.
Then click on Settings to select WIFI in "Upload code via" and type the IP address in the "Set IP address" input field.
The IP address needs to be the IP of your iotFeeder module on the same network than the one used by your computer. It is displayed on the OLED screen of your iotFeeder module:
You then need to open the config page of your module, which will be:
- http://192.168.X.Y/config on your home Wifi
- http://192.168.4.1/config when connected to iotFeeder wifi access point.
And click the "Upgrade Firmware" button at the bottom of the page. The display will then show this message: "OTA ready".
The module will remain in this stage for 3 minutes, after which if nothing happened it will stop waiting for OTA.
Go back to the app home page and click the green up arrow next to your selected Zip file.
The display should then show an "Updating" message.