Google is committed to advancing racial equity for Black communities. See how.
此页面由 Cloud Translation API 翻译。
Switch to English

nl :: 出血:: 平台:: 蓝色Z

摘要

变数

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 ::平台:: BlueZ ::适配器
nl :: Ble ::平台:: BlueZ :: BluezPeripheralArgs
nl :: Ble ::平台:: BlueZ :: BluezServerEndpoint
nl :: Ble ::平台:: BlueZ ::特征
nl :: Ble ::平台:: BlueZ ::服务
nl :: Ble ::平台:: BlueZ :: WeaveIdInfo
nl :: Ble ::平台:: BlueZ :: WeaveServiceData

变数

gBluezBleApplicationDelegate

BluezBleApplicationDelegate * gBluezBleApplicationDelegate

gBluezBlePlatformDelegate

BluezBlePlatformDelegate * gBluezBlePlatformDelegate

gBluezServerEndpoint

 BluezServerEndpoint * gBluezServerEndpoint

功能

闭口连接

void CloseBleconnection(
  void
)

关闭BLE连接。

ExitBluezIOThread

void ExitBluezIOThread(
  void
)

退出BluezIO线程。

RunBluezIOThread

bool RunBluezIOThread(
  BluezPeripheralArgs *arg
)

在Bluez线程上运行WoBle

细节
退货
如果WoBluez库能够与广告商一起成功注册Weave gatt服务器,则返回“ true”,否则返回“ false”

RunOnBluezIOThread

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

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

细节
退货
如果某个函数已成功计划在BluezIO线程上下文中运行,则返回“ true”,否则返回“ false”

WoBLEz_Connection已关闭

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
)