nl::Ble::Platform::BlueZ

摘要

变量

gBluezBleApplicationDelegate
BluezBleApplicationDelegate *
gBluezBlePlatformDelegate
BluezBlePlatformDelegate *
gBluezServerEndpoint

函数

CloseBleconnection(void)
void
关闭 BLE 连接。
ExitBluezIOThread(void)
void
退出 BluezIO 线程。
RunBluezIOThread(BluezPeripheralArgs *arg)
bool
在 Bluez 线程上运行 WoBle
RunOnBluezIOThread(int(*)(void *) aCallback, void *aClosure)
bool
调用一个要在 BluezIO 线程上下文中运行的函数。
WoBLEz_ConnectionClosed(void *user_data)
void
WoBLEz_IndicationConfirmation(void *user_data)
void
WoBLEz_NewConnection(void *user_data)
void
WoBLEz_ScheduleSendIndication(void *user_data, nl::Weave::System::PacketBuffer *msgBuf)
bool
WoBLEz_SubscriptionChange(void *user_data)
void
WoBLEz_TimerCb(void *user_data)
bool
WoBLEz_WriteReceived(void *user_data, const uint8_t *value, size_t len)
void

结构体

nl::Ble::Platform::BlueZ::Adapter
nl::Ble::Platform::BlueZ::BluezPeripheralArgs
nl::Ble::Platform::BlueZ::BluezServerEndpoint
nl::Ble::Platform::BlueZ::Characteristic
nl::Ble::Platform::BlueZ::Service
nl::Ble::Platform::BlueZ::WeaveIdInfo
nl::Ble::Platform::BlueZ::WeaveServiceData

变量

gBluezBleApplicationDelegate

BluezBleApplicationDelegate * gBluezBleApplicationDelegate

gBluezBlePlatformDelegate

BluezBlePlatformDelegate * gBluezBlePlatformDelegate

gBluezServerEndpoint

BluezServerEndpoint * gBluezServerEndpoint

函数

CloseBleconnection

void CloseBleconnection(
  void
)

关闭 BLE 连接。

ExitBluezIOThread

void ExitBluezIOThread(
  void
)

退出 BluezIO 线程。

RunBluezIOThread

bool RunBluezIOThread(
  BluezPeripheralArgs *arg
)

在 Bluez 线程上运行 WoBle

详细信息
返回值
返回“true”如果 WoBluez 库能够成功注册 Weave gatt 服务器以及广告客户,则为“false”

RunOnBluezIOThread

bool RunOnBluezIOThread(
  int(*)(void *) aCallback,
  void *aClosure
)

调用一个要在 BluezIO 线程上下文中运行的函数。

详细信息
返回值
返回“true”如果成功安排函数在 BluezIO 线程上下文中运行,则为“false”

WoBLEz_ConnectionClosed

void WoBLEz_ConnectionClosed(
  void *user_data
)

WoBLEz_IndicationConfirmation

void WoBLEz_IndicationConfirmation(
  void *user_data
)

WoBLEz_NewConnection

void WoBLEz_NewConnection(
  void *user_data
)

WoBLEz_ScheduleSendIndication

bool WoBLEz_ScheduleSendIndication(
  void *user_data,
  nl::Weave::System::PacketBuffer *msgBuf
)

WoBLEz_SubscriptionChange

void WoBLEz_SubscriptionChange(
  void *user_data
)

WoBLEz_TimerCb

bool WoBLEz_TimerCb(
  void *user_data
)

WoBLEz_WriteReceived

void WoBLEz_WriteReceived(
  void *user_data,
  const uint8_t *value,
  size_t len
)