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

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

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

Postby jhubbardsf » Thu Nov 14, 2019 6:32 pm

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.

chegewara
Posts: 873
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Thu Nov 14, 2019 7:38 pm

I think you might have looking for that:

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

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

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

Postby jhubbardsf » Fri Nov 15, 2019 3:05 am

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.

Who is online

Users browsing this forum: No registered users and 11 guests