Hello,
i am building a “digital twin” of an LEGO technic Hub, by using an ESP32.
Target is that ESP32 can be connected to LEGO BLE Apps.
At least i have concerns, that one reason i did not get a connection request is because LEGO Apps using Address Filters .
An Example of a LEGO HUB Address is like:Advertising Address: LegoSyst_4a:3a:0c (90:84:2b:4a:3a:0c) ( a hub owned by me)
As you may know ours is like: Advertising Address: Espressi_cb:69:fa (bc:dd:c2:cb:69:fa)
Question is, how to change Advertising address is sketch to be shown as “LegoSyste” like : 90:84:2b:aa:bb:cc for example
Thanks in advance
Marc
Hello Marc,
If you use this next sketch, you can set a custom MAC Address for your ESP32 BLE device:
I’m not sure why, but it’s required to increase by two the last address, for example:
uint8_t newMACAddress[] = {0x90, 0x84, 0x2B, 0x4A, 0x3A, 0x0A};
To get:
uint8_t newMACAddress[] = {0x90, 0x84, 0x2B, 0x4A, 0x3A, 0x0C};
I hope that helps!
Regards,
Sara