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

صفات عمومی

Ble

BleLayer * Ble

CloseConnectionCb

CloseConnectionCallback CloseConnectionCb

GetMTUCb

GetMTUCallback GetMTUCb

SendWriteRequestCb

SendWriteRequestCallback SendWriteRequestCb

SubscribeCharacteristicCb

SubscribeCharacteristicCallback SubscribeCharacteristicCb

لغو اشتراک CharacteristicCb

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
)

اشتراک مشخصه

virtual bool 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
)