← index #7971Issue #6640
Related · high · value 0.141
QUERY · ISSUE

BLE CUSTOM MAC ADDRESS

openby toxeropened 2021-11-04updated 2024-09-24

Can you externalize a funcrion for setup a cusom mac address for bluetooth device? There is a random mac address generator function. Can you update this function introducing a optional parameter for a fix mac address choose by user?

thx

CANDIDATE · ISSUE

Bluetooth registered presence detection with esp32

closedby kindmartinopened 2020-11-21updated 2021-04-14

hi all here, hope this 2020 crazy times found you well at home like me, having time for fun coding.
I'm back to official uPy as I'm building a small alarm and I would like to disarm it if one of the owner Bluetooth devices is nearby. I was struggling last week looking /trying examples, I can get any results.
I imagined a setup process where the owner registers his phone with the esp alarm and if after a deepsleep wake up triggered for a sensor if the devices are in a scan list results instead to proceed with the alarm task just disarms itself-

Can anyone make some hint with a close bt scan example?

I've read about iPhones changing his MAC address randomly or the like for security reasons, so perhaps this simple idea is more complex than I supposed.

I've tried things like https://lemariva.com/blog/2020/02/tutorial-micropython-and-bluetooth-ble-m5stack or the upy 1.13 https://github.com/micropython/micropython/tree/master/examples.
any help will be appreciated.

M

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied