• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Arduino BLE Server: Using a custom Advertising Address

Q&A Forum › ESP32 Arduino BLE Server: Using a custom Advertising Address
0 Vote Up Vote Down
Marc Rupprath asked 5 years ago

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

Question Tags: Advertising Address
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hello Marc,

If you use this next sketch, you can set a custom MAC Address for your ESP32 BLE device:

  • https://gist.github.com/sarasantos/6787ee0e5c45e497170a3f45d561e56d

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

0 Vote Up Vote Down
Marc Rupprath answered 5 years ago

Hello Sara,
thanks you, works as expected 😉
Marc

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.