Example to use swupdate class
-
micdj
- Posts: 31
- Joined: Wed Jan 06, 2021 2:23 am
Hello! I Need more info to use swupdate class, I try to set server URL, try to start update buy nothing It doesn't work, can you explain me how It work? I can't find any info or tutorial or example thank you
-
klew
- Posts: 13905
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 134 times
- Been thanked: 137 times
Sorry for late response.micdj wrote: Sun Nov 09, 2025 8:48 pm Hello! I Need more info to use swupdate class, I try to set server URL, try to start update buy nothing It doesn't work, can you explain me how It work? I can't find any info or tutorial or example thank you
It is intended to work with updates.supla.org, but this service is not available in open source.
Please check esp-idf implementation for details: /extras/porting/esp-idf/esp_idf_ota.cpp
You can also implement your own mechanism of OTA with different API, but you have to maintain SwUpdate logic, as it is used in SuplaDeviceClass.
Unfortunatelly it is not documented at all, but this "esp_idf_ota.cpp" is relatively short and it should be easy to understand.
It also contain RSA signature calculation and verification (something you may skip in PoC )
Najlepsze suple dla Twojego domu 
