官术网_书友最值得收藏!

Universally Unique Identifiers (UUIDs)

A UUID is a unique identifier that is guaranteed to be globally unique all the time. It is a 128-bit identifier out of which some pre-allocated values are used for registration purposes as described by the Bluetooth SIG. One of the very first pre-allocated values for UUID is known as Bluetooth Base UUID and has a value of 00000000-0000-1000-8000- 00805F9B34FB. Pre-allocated values in the UUID often has 16-bits or 32-bits aliases that can be used to generate your own UUIDs. The formula for generating a 128-bits UUID with pre-allocated alias is:

128-bit-UUID = 16-bit-value * 2 ^ 96 + Bluetooth-Base-UUID
128-bit-UUID = 32-bit-value * 2 ^ 96 + Bluetooth-Base-UUID

Bluetooth SIG provides UUIDS for services and profiles and they are made for a specific purpose. If it doesn't specify a particular need, a new UUID can be created. Using the Bluetooth-Base-UUID is recommended by the SIG for this purpose.

主站蜘蛛池模板: 来凤县| 双江| 阳信县| 临洮县| 光泽县| 沈阳市| 衡山县| 宝鸡市| 宁河县| 怀仁县| 当涂县| 保靖县| 隆德县| 中超| 白沙| 太仆寺旗| 邵阳市| 江口县| 九寨沟县| 河西区| 丹巴县| 龙陵县| 防城港市| 开平市| 古丈县| 望都县| 泊头市| 乐平市| 抚远县| 射洪县| 香格里拉县| 东方市| 阳东县| 乐清市| 启东市| 内乡县| 伊春市| 松潘县| 广宗县| 板桥市| 阳谷县|