当前位置: 首页> 房产> 市场 > Bluetooth: gatt profile

Bluetooth: gatt profile

时间:2025/7/12 0:35:03来源:https://blog.csdn.net/wuzengfengjing1/article/details/141755512 浏览次数:0次

Gatt 主要是描述了attribute的排列方式;

Attribute caching

这个机制允许client只搜索一次server即可,当重连后不需要再搜索直接使用之前的。如果server的服务发生了变化,需要通过 service change indication 告诉client;
client也可通过读取 server端 data hash characteristic, 判断server的服务是否发生变化;

Robust Caching

client不知道server 的database已经发生了变化,在这种情况下,对server进行读写操作,
server可以通过回复 ATT_ERROR_RSP  error_code(database_out_of_sync) 告诉client;

Profile Hierarchy

来自 Spec:
===> Service Defination
All include definitions and characteristic definitions contained within the service
definition are considered to be part of the service. All include definitions shall
immediately follow the service declaration and precede any characteristic definitions. A
service definition may have zero or more include definitions. All characteristic definitions shall be immediately following the last include definition or, in the event of no include definitions, immediately following the service declaration. A service definition may have zero or more characteristic definitions. There is no upper limit for include or
characteristic definitions.===> Characteristic defination
Each declaration above is contained in a separate Attribute. The two required
declarations are the characteristic declaration and the Characteristic Value declaration.
The Characteristic Value declaration shall exist immediately following the characteristic
declaration. Any optional characteristic descriptor declarations are placed after the
Characteristic Value declaration. The order of the optional characteristic descriptor
declarations is not significant.

关键字:Bluetooth: gatt profile

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: