How to receive ble data when esp32 used as master?

xzwang
Posts: 22
Joined: Wed Dec 14, 2016 4:54 am

How to receive ble data when esp32 used as master?

Postby xzwang » Wed Dec 28, 2016 6:33 am

I want to receive data from slaver(nrf51822), Master is ESP32. Connection has established between ESP32 and nrf51822.
Master(ESP32) <------- Connection Established--------->Slaver(nrf51822)

ESP32 sent an request and nrf has responsed, but I have no idea how to receive the response.

Anyone can help me? Thanks.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: How to receive ble data when esp32 used as master?

Postby kolban » Wed Dec 28, 2016 3:58 pm

I too am learning BLE APIs on ESP32 as fast as I can ... would you be able to post an attachment with the code you have so far ... I'll be happy to partner with you so we can both learn.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

xzwang
Posts: 22
Joined: Wed Dec 14, 2016 4:54 am

Re: How to receive ble data when esp32 used as master?

Postby xzwang » Fri Dec 30, 2016 8:39 am

I have fixed this issue, the event ESP_GATTC_NOTIFY_EVT will come when received a notify. I didn't call esp_ble_gattc_register_for_notify when recvived characteristic that its property was 0x10. It is the key reason.

Anyway, Thanks.

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 355 guests