ble之gatt server
生活随笔
收集整理的这篇文章主要介绍了
ble之gatt server
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
结构图:
对应代码:
typedef struct
{uint16_t handle;
uint8_t uuid_len;
uint8_t uuid[16];
}desprip_t;
typedef struct
{
uint16_t handle;
uint8_t uuid_len;
uint8_t uuid[16];
}include_t;
typedef struct
{
uint16_t dhandle;
uint16_t vhandle;
uint8_t property;
uint8_t uuid_len;
uint8_t uuid[16];
uint8_t nod;
desprip_t * d;
}charact_t;
typedef struct
{
uint16_t start;// 服务定义中第一个Attribute的Handle
uint16_t end;// 服务定义中最后一个Attribute的Handle
uint8_t uuid_len;
uint8_t uuid[16];
uint8_t noi;
include_t * i;
uint8_t noc;
charact_t * c;
}service_t;
typedef struct
{
uint8_t nos;//服务的数量
service_t * s;
}server_t;
server_t server;
总结
以上是生活随笔为你收集整理的ble之gatt server的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 通用属性配置文件(Generic Att
- 下一篇: Summary of GATT Prof