BLE remote_bda MAC address

davdav
Posts: 208
Joined: Thu Nov 17, 2016 2:33 pm

BLE remote_bda MAC address

Postby davdav » Fri Mar 16, 2018 1:49 pm

Hi everybody,
I have tested example bt_ssp_acceptor and I modified it to write the MAC address of the remote device which connects to ESP32. The mac address was correctly displayed as reported also in device info of the tablet I used to connect to esp32.
In my case: 7e 6b 46 81 27 34

Then I tested gatt_server_service_table example. On tablet I installed nRFconnect APP. Everything is working but when a connect event is reported on ESP32, the remote_bda of the tablet is shown as:

Code: Select all

I (34882) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
I (34882) GATTS_TABLE_DEMO: d3 83 29 48 0e f1
which is NOT the same for the BT (classic) spp example. Is there a difference between the MAC address for BT classic and remote_bda for BLE?

How can I get the MAC address of the remote device in BLE?

Thanks

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: BLE remote_bda MAC address

Postby WiFive » Fri Mar 16, 2018 9:21 pm


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

Re: BLE remote_bda MAC address

Postby kolban » Sat Mar 17, 2018 3:35 am

Thank you Mr WiFive. Great article and well worth a read.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

davdav
Posts: 208
Joined: Thu Nov 17, 2016 2:33 pm

[SOLVED]Re: BLE remote_bda MAC address

Postby davdav » Sat Mar 17, 2018 2:58 pm

Thanks @WiFive. After I wrote the post I have found out that articles which solved the question.

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 105 guests