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

DeviceManager_BlePlatformDelegate

Summary

Inheritance

Inherits from: nl::Ble::BlePlatformDelegate

Constructors and Destructors

DeviceManager_BlePlatformDelegate(BleLayer *ble)

Public attributes

Ble
closeCB
CloseBleCBFunct
subscribeCB
SubscribeBleCharacteristicCBFunct
writeCB
WriteBleCharacteristicCBFunct

Public functions

CloseConnection(BLE_CONNECTION_OBJECT connObj)
virtual bool
GetMTU(BLE_CONNECTION_OBJECT connObj) const
virtual uint16_t
SendIndication(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId, nl::Weave::System::PacketBuffer *pBuf)
bool
SendReadRequest(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId, nl::Weave::System::PacketBuffer *pBuf)
bool
SendReadResponse(BLE_CONNECTION_OBJECT connObj, BLE_READ_REQUEST_CONTEXT requestContext, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId)
virtual bool
SendWriteRequest(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId, nl::Weave::System::PacketBuffer *pBuf)
bool
SetCloseCB(CloseBleCBFunct cb)
void
SetSubscribeCharCB(SubscribeBleCharacteristicCBFunct cb)
void
SetWriteCharCB(WriteBleCharacteristicCBFunct cb)
void
SubscribeCharacteristic(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId)
virtual bool
UnsubscribeCharacteristic(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId)
virtual bool

Public attributes

Ble

BleLayer * Ble

closeCB

CloseBleCBFunct closeCB

subscribeCB

SubscribeBleCharacteristicCBFunct subscribeCB

writeCB

WriteBleCharacteristicCBFunct writeCB

Public functions

CloseConnection

virtual bool CloseConnection(
  BLE_CONNECTION_OBJECT connObj
)

DeviceManager_BlePlatformDelegate

 DeviceManager_BlePlatformDelegate(
  BleLayer *ble
)

GetMTU

virtual uint16_t GetMTU(
  BLE_CONNECTION_OBJECT connObj
) const 

SendIndication

bool SendIndication(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId,
  nl::Weave::System::PacketBuffer *pBuf
)

SendReadRequest

bool SendReadRequest(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId,
  nl::Weave::System::PacketBuffer *pBuf
)

SendReadResponse

virtual bool SendReadResponse(
  BLE_CONNECTION_OBJECT connObj,
  BLE_READ_REQUEST_CONTEXT requestContext,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId
)

SendWriteRequest

bool SendWriteRequest(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId,
  nl::Weave::System::PacketBuffer *pBuf
)

SetCloseCB

void SetCloseCB(
  CloseBleCBFunct cb
)

SetSubscribeCharCB

void SetSubscribeCharCB(
  SubscribeBleCharacteristicCBFunct cb
)

SetWriteCharCB

void SetWriteCharCB(
  WriteBleCharacteristicCBFunct cb
)

SubscribeCharacteristic

virtual bool SubscribeCharacteristic(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId
)

UnsubscribeCharacteristic

virtual bool UnsubscribeCharacteristic(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId
)