微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt2523 How to Add characteristic with 128 UUID

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);

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top