Hello,
Just wondering how I would setup characteristics and store them in a partition.
I understand how to complete the OTA once I have the file just unsure on how to setup the characteristics for BLE to receive the .bin file.
Are there any examples where object transfer service was used in BLE or some custom service?
Cheers,
Gibson
OTA with BLE
Re: OTA with BLE
You have to configure characteristics usual way. This is only snippet from app i wrote as proof of concept, maybe it will help you:
https://github.com/espressif/arduino-es ... -447420118
https://github.com/espressif/arduino-es ... -447420118
-
- Posts: 58
- Joined: Wed Jul 17, 2019 11:45 pm
Re: OTA with BLE
Did you ever develop that code further? Could I look at your BLE setup? How do you use indications I have not been able to find any real documentation on them or how they work.
Did you use the object transfer service or did you write a custom service?
Cheers,
Gibson
Did you use the object transfer service or did you write a custom service?
Cheers,
Gibson
Re: OTA with BLE
Yes, i had it working. Currently i am trying to write OTA over BLE example and will create repository on github when i finish it.
It is working now, but after OTA update i have very strange issue, my esp32 with new fw is restarting 3 times with unusual error logs.
I am using custom service and characteristics for that.
It is working now, but after OTA update i have very strange issue, my esp32 with new fw is restarting 3 times with unusual error logs.
I am using custom service and characteristics for that.
-
- Posts: 58
- Joined: Wed Jul 17, 2019 11:45 pm
Re: OTA with BLE
Hey chegewara,
Thanks for the reply I would love to have a look at your repo once you've committed to it. Give me a heads up once you've made it public.
Cheers,
Gibson
Thanks for the reply I would love to have a look at your repo once you've committed to it. Give me a heads up once you've made it public.
Cheers,
Gibson
Re: OTA with BLE
Here is example code:
https://github.com/chegewara/esp32-OTA-over-BLE
And here is esp-idf issue:
https://github.com/espressif/esp-idf/issues/3923
https://github.com/chegewara/esp32-OTA-over-BLE
And here is esp-idf issue:
https://github.com/espressif/esp-idf/issues/3923
Who is online
Users browsing this forum: Bing [Bot], ESP_Roland and 102 guests