How does bluetooth device address work (bd_addr)
Posted: Wed Oct 06, 2021 5:04 am
Hello. I would like to understand a little bit more about how bd_addr work and how they are created. I have built ble_security_server example.
After I connect my phone to ESP32 device, I get the following messages on serial output:
Can someone help me undertand how
are created? Is there any way to know the unique bluetooth address before I connect anything ( after the bluetooth initialization ). I would like to send unique bluetooth address to the server and trying to think of what would be the best way. Any ideas are appreaciated
After I connect my phone to ESP32 device, I get the following messages on serial output:
Code: Select all
I (17405) SEC_GATTS_DEMO: ESP_GATTS_CONNECT_EVT
I (17745) SEC_GATTS_DEMO: remote BD_ADDR: 6a1513dc691a
I (17745) SEC_GATTS_DEMO: address type = 1
I (17745) SEC_GATTS_DEMO: pair status = success
I (17755) SEC_GATTS_DEMO: auth mode = ESP_LE_AUTH_REQ_SC_MITM_BOND
I (17755) SEC_GATTS_DEMO: Bonded devices number : 1
I (17765) SEC_GATTS_DEMO: Bonded devices list : 1
I (17765) SEC_GATTS_DEMO: 6a 15 13 dc 69 1a
Can someone help me undertand how
Code: Select all
remote BD_ADDR: 6a1513dc691a
are created? Is there any way to know the unique bluetooth address before I connect anything ( after the bluetooth initialization ). I would like to send unique bluetooth address to the server and trying to think of what would be the best way. Any ideas are appreaciated