ESP32 mac address does not match LightBlue displayed address

zazas321
Posts: 231
Joined: Mon Feb 01, 2021 9:41 am

ESP32 mac address does not match LightBlue displayed address

Postby zazas321 » Tue Feb 01, 2022 6:03 am

I use esp_efuse_mac_get_default to read the ESP32 mac address:

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]);
    }
And the output is:

Code: Select all

mac[0]=94
mac[1]=3c
mac[2]=c6
mac[3]=1
mac[4]=1f
mac[5]=a0
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?
Attachments
Screenshot_20220201-075923_LightBlue.jpg
Screenshot_20220201-075923_LightBlue.jpg (334.48 KiB) Viewed 3348 times


zazas321
Posts: 231
Joined: Mon Feb 01, 2021 9:41 am

Re: ESP32 mac address does not match LightBlue displayed address

Postby zazas321 » Tue Feb 01, 2022 6:28 am

Thank you very much for pointing this out.. I have missed this somehow

Who is online

Users browsing this forum: No registered users and 72 guests