Page 1 of 1

How do I do wifi provisioning with BLE and custom data?

Posted: Thu Nov 14, 2019 6:32 pm
by jhubbardsf
I'm trying to figure out how to send some custom data with my BLE provisioning. None of the examples are very clear but I may have missed something since the documentation is kind of thick. My use case is that I have an iOS app and my device (ESP32-WROOM-32). The end goal is this: send the devices mac address to the phone, and have the phone send an auth token (generated by our backend server) with the wifi credentials to the device.

Right now I have regular BLE wifi provisioning implemented and it works great. But I'm new to using bluetooth so unsure how to do the mac/auth token exchange. I'm assuming I'll have to do more research and write some custom solution, but if I missed an easy way to do this with the built in examples/libraries I'd appreciate it if someone could point me in the right direction.

Thanks.

Re: How do I do wifi provisioning with BLE and custom data?

Posted: Thu Nov 14, 2019 7:38 pm
by chegewara
I think you might have looking for that:

https://docs.espressif.com/projects/esp ... -endpoints

Re: How do I do wifi provisioning with BLE and custom data?

Posted: Fri Nov 15, 2019 3:05 am
by jhubbardsf
chegewara wrote:
Thu Nov 14, 2019 7:38 pm
I think you might have looking for that:

https://docs.espressif.com/projects/esp ... -endpoints
Thanks! That's exactly what I needed.