这是最新(主)开发分支的文档。如果您正在查找以前版本的文档,使用左侧的下拉菜单选择所需的版本。

SAR 配置服务器

SAR 配置服务器模型是 Bluetooth Mesh 规范定义的基础模型。它是一种可选型号,通过 CONFIG_BT_MESH_SAR_CFG_SRV 配置选项启用。

SAR 配置服务器模型在 Bluetooth Mesh Protocol Specification 版本1.1中引入,它支持配置 segmentation and reassembly (SAR) Bluetooth Mesh 节点的。该模型为 SAR 配置定义了一组状态和消息。

SAR 配置服务器模型定义了两种状态,SAR 发射机状态和 SAR 接收机状态。有关这两个状态的更多信息,请参见 SAR 状态 。

该模型还支持 SAR 发射机和 SAR 接收机获取和设置消息。

SAR 配置服务器模型没有自己的 API,但依赖于 SAR 配置客户端 来控制它。SAR 配置 Server 模型仅接受使用节点的设备密钥加密的消息。

如果存在,SAR 配置服务器模型必须仅在主元素上实例化。

头文件

  • wm_iot_sdk/components/bluetooth/include/bluetooth/mesh/sar_cfg_srv.h

  • This header file can be included with:

#include "bluetooth/mesh/sar_cfg_srv.h"

API 参考

group bt_mesh_sar_cfg_srv

Bluetooth Mesh.

Defines

BT_MESH_MODEL_SAR_CFG_SRV

Transport SAR Configuration Server model composition data entry.