Page 1 of 1

How to receive ble data when esp32 used as master?

Posted: Wed Dec 28, 2016 6:33 am
by xzwang
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.

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

Posted: Wed Dec 28, 2016 3:58 pm
by kolban
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.

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

Posted: Fri Dec 30, 2016 8:39 am
by xzwang
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.