Replies: 5 comments 5 replies
-
How?, Which the webupdate page?, Can you offer a concrete way of doing that? |
Beta Was this translation helpful? Give feedback.
-
Hi Hieromon, How can I show the current firmware version on the update page? the idea would be to add an actext in the update page to send the value that contains the firmware version I hope I have explained myself, my English is poor Greetings |
Beta Was this translation helpful? Give feedback.
-
Your intention is to be feedback the variable value indicating the version number defined in the sketch to the update page when you select the firmware that can be updated by AutoConnectOTA. However, the behavior is inconsistent. By the time AutoConnect displays the update page, AutoConnect itself must have the binary code for the firmware of your choice. This means that you have uploaded the firmware from your browser (which is the client from AutoConnect's perspective). You need to understand how HTTP requests-responses work in a client/server model. In addition, the version number you embed in your sketch is usually not identifiable within the compiled binary. Strictly identifiable, even the ESP32 lacks resources to incorporate such reverse engineering processes. A practical technique you can choose is to include an ID to identify the version as part of the compiled BIN file name. NOTE |
Beta Was this translation helpful? Give feedback.
-
I don't know if I have correclty understood, but if you just want to quickly show the current firmware running in your board you can simple add this before starting the portal: |
Beta Was this translation helpful? Give feedback.
-
@DanMan32
Note that you need to delete the compiled object each time you update |
Beta Was this translation helpful? Give feedback.
-
As I can add a label in the webupdate page that indicates the firmware version, this variable would be defined in the main.
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions