ESP32 mac address does not match LightBlue displayed address
Posted: Tue Feb 01, 2022 6:03 am
I use esp_efuse_mac_get_default to read the ESP32 mac address:
And the output is:
So the device mac address is 94:3C:C6:10:1F:A0
However, when I connect to this ESP32 device via BLE on lightBlue App on mobile phone, it says slightly diffrerent MAC address (See the Lightblue screenshot from my phone).
I have tried with multiple other ESP32 devices and it seems that it is always the last mac address digit that is different and lightblue app always display the last digit +2.
For example if my ESP32 mac address last digit is A0, the lightblue app will display A2.
Has anyone else noticed this issue? Is this problem with LightBlue?
Code: Select all
esp_efuse_mac_get_default(mac_base);
for(int i = 0; i <6;i++){
printf("mac[%i]=%x\n",i,mac_base[i]);
}
Code: Select all
mac[0]=94
mac[1]=3c
mac[2]=c6
mac[3]=1
mac[4]=1f
mac[5]=a0
However, when I connect to this ESP32 device via BLE on lightBlue App on mobile phone, it says slightly diffrerent MAC address (See the Lightblue screenshot from my phone).
I have tried with multiple other ESP32 devices and it seems that it is always the last mac address digit that is different and lightblue app always display the last digit +2.
For example if my ESP32 mac address last digit is A0, the lightblue app will display A2.
Has anyone else noticed this issue? Is this problem with LightBlue?