Google is committed to advancing racial equity for Black communities. See how.

nl::Ble::BleTransportCapabilitiesRequestMessage

Summary

Public attributes

mMtu
uint16_t
The MTU that has been negotiated for this BLE connection.
mSupportedProtocolVersions[(NUM_SUPPORTED_PROTOCOL_VERSIONS/2)+(NUM_SUPPORTED_PROTOCOL_VERSIONS%2)]
uint8_t
An array of size NUM_SUPPORTED_PROTOCOL_VERSIONS listing versions of the BLE transport protocol that this node supports.
mWindowSize
uint8_t
The initial and maximum receive window size offered by the central, defined in terms of GATT indication payloads.

Public functions

Encode(PacketBuffer *msgBuf) const
Must be able to reserve 20 byte data length in msgBuf.
SetSupportedProtocolVersion(uint8_t index, uint8_t version)
void
Set supported version value at given index in SupportedProtocolVersions.

Public static functions

Decode(const PacketBuffer & msgBuf, BleTransportCapabilitiesRequestMessage & msg)

Public attributes

mMtu

uint16_t mMtu

The MTU that has been negotiated for this BLE connection.

Specified in the BleTransportCapabilitiesRequestMessage because the remote node may be unable to glean this info from its own BLE hardware/software stack, such as on older Android platforms.

A value of 0 means that the central could not determine the negotiated BLE connection MTU.

mSupportedProtocolVersions

uint8_t mSupportedProtocolVersions[(NUM_SUPPORTED_PROTOCOL_VERSIONS/2)+(NUM_SUPPORTED_PROTOCOL_VERSIONS%2)]

An array of size NUM_SUPPORTED_PROTOCOL_VERSIONS listing versions of the BLE transport protocol that this node supports.

Each protocol version is specified as a 4-bit unsigned integer. A zero-value represents unused array elements. Counting up from the zero-index, the first zero-value specifies the end of the list of supported protocol versions.

mWindowSize

uint8_t mWindowSize

The initial and maximum receive window size offered by the central, defined in terms of GATT indication payloads.

Public functions

Encode

BLE_ERROR Encode(
  PacketBuffer *msgBuf
) const 

Must be able to reserve 20 byte data length in msgBuf.

SetSupportedProtocolVersion

void SetSupportedProtocolVersion(
  uint8_t index,
  uint8_t version
)

Set supported version value at given index in SupportedProtocolVersions.

uint8_t version argument is truncated to 4 least-significant bits. Index shall be 0 through number of SupportedProtocolVersions elements - 1.

Public static functions

Decode

BLE_ERROR Decode(
  const PacketBuffer & msgBuf,
  BleTransportCapabilitiesRequestMessage & msg
)