Page 1 of 1

OTA with BLE

Posted: Mon Aug 05, 2019 4:13 am
by gibson12345
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

Re: OTA with BLE

Posted: Sat Aug 10, 2019 11:59 pm
by chegewara
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

Re: OTA with BLE

Posted: Sun Aug 11, 2019 11:51 pm
by gibson12345
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

Re: OTA with BLE

Posted: Wed Aug 14, 2019 8:45 pm
by chegewara
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.

Re: OTA with BLE

Posted: Thu Aug 15, 2019 11:35 pm
by gibson12345
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

Re: OTA with BLE

Posted: Sat Aug 17, 2019 8:16 am
by chegewara