nl:: Ble:: BleTransportCapabilitiesRequestMessage
摘要
公共属性 |
|
---|---|
mMtu
|
uint16_t
为此 BLE 连接协商的 MTU。
|
mSupportedProtocolVersions[(NUM_SUPPORTED_PROTOCOL_VERSIONS/2)+(NUM_SUPPORTED_PROTOCOL_VERSIONS%2)]
|
uint8_t
大小为 NUM_SUPPORTED_PROTOCOL_VERSIONS 的数组,列出此节点支持的 BLE 传输协议版本。
|
mWindowSize
|
uint8_t
中央设备提供的初始和最大接收窗口大小(根据 GATT 指示载荷定义)。
|
公共函数 |
|
---|---|
Encode(PacketBuffer *msgBuf) const
|
必须能够在 msgBuf 中保留 20 字节的数据长度。
|
SetSupportedProtocolVersion(uint8_t index, uint8_t version)
|
void
在 SupportedProtocolVersions 中设置给定索引支持的版本值。
|
公共静态函数 |
|
---|---|
Decode(const PacketBuffer & msgBuf, BleTransportCapabilitiesRequestMessage & msg)
|
公共属性
MMtu
uint16_t mMtu
为此 BLE 连接协商的 MTU。
在 BleTransportCapabilitiesRequestMessage 中指定,因为远程节点可能无法从它自己的 BLE 硬件/软件堆栈中收集此信息,例如在旧版 Android 平台上。
如果值为 0,则表示中央设备无法确定协商好的 BLE 连接 MTU。
mSupportedProtocolVersions
uint8_t mSupportedProtocolVersions[(NUM_SUPPORTED_PROTOCOL_VERSIONS/2)+(NUM_SUPPORTED_PROTOCOL_VERSIONS%2)]
大小为 NUM_SUPPORTED_PROTOCOL_VERSIONS 的数组,列出此节点支持的 BLE 传输协议版本。
每个协议版本都指定为一个 4 位未签名整数。零值表示未使用的数组元素。从零索引开始,第一个零值指定受支持协议版本列表的结尾。
mWindowSize
uint8_t mWindowSize
中央设备提供的初始和最大接收窗口大小(根据 GATT 指示载荷定义)。
公共函数
SetSupportedProtocolVersion
void SetSupportedProtocolVersion( uint8_t index, uint8_t version )
在 SupportedProtocolVersions 中设置给定索引支持的版本值。
uint8_t 版本参数被截断为 4 个最低有效位。索引应介于 0 到 SupportedProtocolVersions 元素数 - 1 之间。