hi,everyone,when the device is connected to the phone,and how does the device get the MAC address of the phone? thanks.
hi,everyone,when the device is connected to the phone,and how does the device get the MAC address of the phone? thanks.
Can you be more specific? What is that "device" which is connected to the phone? What is running on that device? Why you need that MAC address? Otherwise the only general answer is "MAC is present in some Link Layer PDUs so low-layer stack sees it and if it has API and that is exercised well even higher layers can get that".
Not helping. So you have Android device and you ask how to get its BT LE MAC from Android API to your Android application? Or you have nRF device and you are asking how to get its BLE MAC through SoftDevice API? Two different situations bring two completely different answers. Because BLE APIs are device (HW) and OS/environment (SW) specific there is no general answer for "any device".
Not helping. So you have Android device and you ask how to get its BT LE MAC from Android API to your Android application? Or you have nRF device and you are asking how to get its BLE MAC through SoftDevice API? Two different situations bring two completely different answers. Because BLE APIs are device (HW) and OS/environment (SW) specific there is no general answer for "any device".