nl::Weave::DeviceLayer::داخلي::BLEManager

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

تتيح هذه السياسة التحكّم في خدمات WoBLE وإمكانية الاتصال بجهاز Weave.

الملخّص

تحدّد BLEManager الواجهة المجرّدة لكائن مفردة لتوفير التحكم في خدمات WoBLE وإمكانية الاتصال بجهاز Weave. BLEManager هو عنصر داخلي يتم استخدامه بواسطة مكوّنات أخرى مع طبقة الجهاز Weave، ولكن لا يمكن للتطبيق الوصول إليه مباشرة.

الاكتساب

الفئات الفرعية المعروفة مباشرةً:
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl{/10

الأنواع المتاحة للجميع

WoBLEServiceMode يستخدمون
ConnectivityManager::WoBLEServiceMode

وظائف عامة

GetBleLayer(void) const
GetDeviceName(char *buf, size_t bufSize)
GetWoBLEServiceMode(void)
WoBLEServiceMode
Init(void)
IsAdvertising(void)
bool
IsAdvertisingEnabled(void)
bool
IsFastAdvertisingEnabled(void)
bool
NumConnections(void)
uint16_t
OnPlatformEvent(const WeaveDeviceEvent *event)
void
SetAdvertisingEnabled(bool val)
SetDeviceName(const char *deviceName)
SetFastAdvertisingEnabled(bool val)
SetWoBLEServiceMode(WoBLEServiceMode val)

دوال محمية

BLEManager()=default
BLEManager(const BLEManager &)=delete
BLEManager(const BLEManager &&)=delete
operator=(const BLEManager &)=delete
~BLEManager()=default

الأنواع المتاحة للجميع

WoBLEServiceMode

ConnectivityManager::WoBLEServiceMode WoBLEServiceMode

وظائف عامة

GetBleLayer

::nl::Ble::BleLayer * GetBleLayer(
  void
) const 

الحصول على اسم الجهاز

WEAVE_ERROR GetDeviceName(
  char *buf,
  size_t bufSize
)

GetWoBLEServiceMode

WoBLEServiceMode GetWoBLEServiceMode(
  void
)

إنيت

WEAVE_ERROR Init(
  void
)

محتوى إعلاني

bool IsAdvertising(
  void
)

IsAdvertisingEnabled

bool IsAdvertisingEnabled(
  void
)

IsFastAdvertisingEnabled

bool IsFastAdvertisingEnabled(
  void
)

عدد الاتصالات

uint16_t NumConnections(
  void
)

OnPlatformEvent

void OnPlatformEvent(
  const WeaveDeviceEvent *event
)

تم ضبط الإعلان

WEAVE_ERROR SetAdvertisingEnabled(
  bool val
)

تحديد اسم الجهاز

WEAVE_ERROR SetDeviceName(
  const char *deviceName
)

SetFastAdvertisingEnabled

WEAVE_ERROR SetFastAdvertisingEnabled(
  bool val
)

SetWoBLEServiceMode

WEAVE_ERROR SetWoBLEServiceMode(
  WoBLEServiceMode val
)

دوال محمية

مدير BLE

 BLEManager()=default

مدير BLE

 BLEManager(
  const BLEManager &
)=delete

مدير BLE

 BLEManager(
  const BLEManager &&
)=delete

عامل التشغيل=

BLEManager & operator=(
  const BLEManager &
)=delete

مدير BLE

 ~BLEManager()=default