nl::Weave::DeviceLayer::Internal::GenericConnectivityManagerImpl_BLE

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_BLE.h>

针对通过 BLEManager 类实现 BLE 功能的平台,提供 BLE 专用 ConnectivityManager 功能的通用实现。

摘要

此类旨在(直接或间接)由 ConnectivityManagerImpl 类继承,该类也会显示为模板的 ImplClass 参数。

此类中的大多数方法只是转发对 BLEManager 类中名称相似的方法的调用。这种安排(其中 ConnectivityManager 实现将 BLE 支持委托给 BLEManager 类)是支持 BLE 的平台的标准配置,并且有助于限制 ConnectivityManagerImpl 类的复杂性。

公共函数

_GetBLEDeviceName(char *buf, size_t bufSize)
_GetWoBLEServiceMode(void)
ConnectivityManager::WoBLEServiceMode
_IsBLEAdvertising(void)
bool
_IsBLEAdvertisingEnabled(void)
bool
_IsBLEFastAdvertisingEnabled(void)
bool
_NumBLEConnections(void)
uint16_t
_SetBLEAdvertisingEnabled(bool val)
_SetBLEDeviceName(const char *deviceName)
_SetBLEFastAdvertisingEnabled(bool val)
_SetWoBLEServiceMode(ConnectivityManager::WoBLEServiceMode val)

公共静态函数

_WoBLEServiceModeToStr(ConnectivityManager::WoBLEServiceMode mode)
const char *

公共函数

_GetBLEDeviceName

WEAVE_ERROR _GetBLEDeviceName(
  char *buf,
  size_t bufSize
)

获取 WoBLEServiceMode

ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode(
  void
)

_IsBLE 广告

bool _IsBLEAdvertising(
  void
)

_IsBLEAdvertisingEnabled

bool _IsBLEAdvertisingEnabled(
  void
)

_IsBLEFastAdvertisingEnabled

bool _IsBLEFastAdvertisingEnabled(
  void
)

_NumBLEConnections

uint16_t _NumBLEConnections(
  void
)

_SetBLEAdvertisingEnabled

WEAVE_ERROR _SetBLEAdvertisingEnabled(
  bool val
)

_SetBLEDeviceName

WEAVE_ERROR _SetBLEDeviceName(
  const char *deviceName
)

_SetBLEFastAdvertisingEnabled

WEAVE_ERROR _SetBLEFastAdvertisingEnabled(
  bool val
)

_SetWoBLEServiceMode

WEAVE_ERROR _SetWoBLEServiceMode(
  ConnectivityManager::WoBLEServiceMode val
)

公共静态函数

_WoBLEServiceModeToStr

const char * _WoBLEServiceModeToStr(
  ConnectivityManager::WoBLEServiceMode mode
)