-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A quick question - Set Mac address (iBeacon) #108
Comments
I have not implemented this as a library function yet but it is possible. Do you need a random address that changes often like on phones or just a different address that you set yourself? |
Thanks for the quick reply. I have a fixed address that I need to set. |
For that purpose you’ll have to refer to this document as it involves esp function calls. When I can get on my pc I’ll check how it is set via NimBLE when it sets a random address. |
OK cool thanks. I'll check out the documentation and see what needs to be done ... but I am guessing I'll need to change the base_mac ... probably something like
Gona try in a while. Thanks once again @h2zero |
On the first look, it seem like
|
Yes that would be the case, so if you wanted to specify a MAC address exactly you would have to -2 on the last octet so if you wanted 11:22:33:44:55:66 you would have to set it to 11:22:33:44:55:64. |
Okay cool ... now messing with one little thing; the name of the device does not appear in the scanner application. I can see the mac address and the advertisement string but the name does not appear ... it's empty From the scanner app I tried setting the iBeacon name in the I might be missing a tiny something here. |
You'll need to set the name in the scan response data, the advertising packet doesn't have room. |
Ok cool. I'll experiment with the scan response and see how it goes. A big thanks @h2zero. |
Thought I'll mention this; the below worked for me. Earlier I might have missed something and that's why it didn't work. One can use either
|
A quick one; Is it possible to set the mac address when using this iBeacon example?
I have a peculiar case where I have no choice but to change the mac address. In short the other scanners should see the mac address that I have set rather than the real mac address of the iBeacon. Any pointers? Thanks.
The text was updated successfully, but these errors were encountered: