mt2523 How to Add characteristic with 128 UUID
时间:10-02
整理:3721RD
点击:
1. If UUID is 16 bit, convert it as 128 bit.
/*sample code*/
bt_uuid_t uuid128_xxx = BT_UUID_INIT_WITH_UUID16(uuid16_xxx);
2. Define 128 UUID characteristic, and add to service
/*sample code*/
BT_GATTS_NEW_CHARC_128(name, prop, _handle, uuid128_xxx);
/*sample code*/
bt_uuid_t uuid128_xxx = BT_UUID_INIT_WITH_UUID16(uuid16_xxx);
2. Define 128 UUID characteristic, and add to service
/*sample code*/
BT_GATTS_NEW_CHARC_128(name, prop, _handle, uuid128_xxx);