Hello. I have a raspberry PI running as a server (have apache2, php installed). I also have multiple nodes of ESP32 connected to the same network using WiFi.
I am trying to do OTA (over the air update) on my ESP32 devices from my Raspberry PI. Could someone give me some advice/tips?
I have been reading this article:
https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#http-server
If you go down to HTTP SERVER OTA update, there is a snippet of code :
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");
Each ESP32 node will have its own program so I need to store multiple .bin files in my webserver and I would like to somehow initiate the firmware update from the user interface that I have set up(NODE-RED). My questions are:
1. Can I store multiple .bin files on my raspberry pi PHP webserver and access them from my remote nodes ( they are connected to the same network)
2. I could initiate a firmware update by subscribing to the topic and waiting for user input as such;
if(user_button_pressed){ // if button pressed - initiate firwmare update
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");
}
Would that work?
I am trying to do OTA (over the air update) on my ESP32 devices from my Raspberry PI. Could someone give me some advice/tips?
I have been reading this article:
https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#http-server
If you go down to HTTP SERVER OTA update, there is a snippet of code :
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");
Each ESP32 node will have its own program so I need to store multiple .bin files in my webserver and I would like to somehow initiate the firmware update from the user interface that I have set up(NODE-RED). My questions are:
1. Can I store multiple .bin files on my raspberry pi PHP webserver and access them from my remote nodes ( they are connected to the same network)
2. I could initiate a firmware update by subscribing to the topic and waiting for user input as such;
if(user_button_pressed){ // if button pressed - initiate firwmare update
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");
}
Would that work?