AndroidBlePlatformDelegate

摘要

繼承

沿用自: nl::Ble::BlePlatformDelegate

建構函式和解構函式

AndroidBlePlatformDelegate(BleLayer *ble)

公開屬性

Ble
CloseConnectionCb
CloseConnectionCallback
GetMTUCb
GetMTUCallback
SendWriteRequestCb
SendWriteRequestCallback
SubscribeCharacteristicCb
SubscribeCharacteristicCallback
UnsubscribeCharacteristicCb
UnsubscribeCharacteristicCallback

公開函式

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, PacketBuffer *pBuf)
virtual bool
SendReadRequest(BLE_CONNECTION_OBJECT connObj, const nl::Ble::WeaveBleUUID *svcId, const nl::Ble::WeaveBleUUID *charId, PacketBuffer *pBuf)
virtual 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, PacketBuffer *pBuf)
virtual bool
SetCloseConnectionCallback(CloseConnectionCallback cb)
void
SetGetMTUCallback(GetMTUCallback cb)
void
SetSendWriteRequestCallback(SendWriteRequestCallback cb)
void
SetSubscribeCharacteristicCallback(SubscribeCharacteristicCallback cb)
void
SetUnsubscribeCharacteristicCallback(UnsubscribeCharacteristicCallback 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

公開屬性

布萊恩

BleLayer * Ble

CloseConnectionCb

CloseConnectionCallback CloseConnectionCb

GetMTUCb

GetMTUCallback GetMTUCb

SendWriteRequestCb

SendWriteRequestCallback SendWriteRequestCb

SubscribeCharacteristicCb

SubscribeCharacteristicCallback SubscribeCharacteristicCb

UnsubscribeCharacteristicCb

UnsubscribeCharacteristicCallback UnsubscribeCharacteristicCb

公開函式

AndroidBlePlatformDelegate

 AndroidBlePlatformDelegate(
  BleLayer *ble
)

CloseConnection

virtual bool CloseConnection(
  BLE_CONNECTION_OBJECT connObj
)

GetMTU

virtual uint16_t GetMTU(
  BLE_CONNECTION_OBJECT connObj
) const 

SendIndication

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

SendReadRequest

virtual bool SendReadRequest(
  BLE_CONNECTION_OBJECT connObj,
  const nl::Ble::WeaveBleUUID *svcId,
  const nl::Ble::WeaveBleUUID *charId,
  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

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

SetCloseConnectionCallback

void SetCloseConnectionCallback(
  CloseConnectionCallback cb
)

SetGetMTUCallback

void SetGetMTUCallback(
  GetMTUCallback cb
)

SetSendWriteRequestCallback

void SetSendWriteRequestCallback(
  SendWriteRequestCallback cb
)

SetSubscribeCharacteristicCallback

void SetSubscribeCharacteristicCallback(
  SubscribeCharacteristicCallback cb
)

SetUnsubscribeCharacteristicCallback

void SetUnsubscribeCharacteristicCallback(
  UnsubscribeCharacteristicCallback 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
)