简体   繁体   中英

UUID of bluetooth server and client

what is UUID in android bluetoothserversocket meant? how we can set UUID for bluetooth server and client?

It is a long story but let's short it. Yes, UUID is an universal unique identifier to mark one special items, eg profiles, or characters, or whatever, just like your driver license's ID. On Bluetooth, SIG defined some official UUID and you can find here: https://www.bluetooth.com/specifications/assigned-numbers/service-discovery

Then regarding to the bluetoothserversocket , this is the SPP actually and SPP does have the UUID named 0x1101 . however more and more requests need that more SPP channel on one device, hence more and more Bluetooth stack vendor defined the multi-SPP support channel, but the official UUID only one, so we can define our spec UUID, which need client and server use the same UUID.

The value itself can be defined any value only if it is "universal unique".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM