开发者

responding to different device name for different Bluetooth discovery request

开发者 https://www.devze.com 2023-02-03 09:14 出处:网络
I want to write an application which respond different device name for different Bluetooth device discovery request. For example, I h开发者_如何学Pythonave two mobile phones A and B. I want to show my

I want to write an application which respond different device name for different Bluetooth device discovery request. For example, I h开发者_如何学Pythonave two mobile phones A and B. I want to show my laptop Bluetooth device name as "device1" for "A" and as "device2" for "B"


Bluetooth software stacks generally (always?) cache the remote device names (and it can be very hard to get them to forget the old name and re-read it)...

So set your device to have device name "device1" get "A" to discover it, then change its name to "device2" and get "B" to discover it. "A" will always know it as "device1" and "B" will always know it as "device2". :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号