Page 1 of 1

BLE remote_bda MAC address

Posted: Fri Mar 16, 2018 1:49 pm
by davdav
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

Re: BLE remote_bda MAC address

Posted: Fri Mar 16, 2018 9:21 pm
by WiFive

Re: BLE remote_bda MAC address

Posted: Sat Mar 17, 2018 3:35 am
by kolban
Thank you Mr WiFive. Great article and well worth a read.

[SOLVED]Re: BLE remote_bda MAC address

Posted: Sat Mar 17, 2018 2:58 pm
by davdav
Thanks @WiFive. After I wrote the post I have found out that articles which solved the question.