SDK  23.9.2
For IoT System Software Development
Static Public Member Functions | Static Public Attributes | List of all members
BLEDevice Class Reference

BLE functions. More...

#include <BLEDevice.hpp>

Static Public Member Functions

static BLEClientcreateClient ()
 
static BLEServercreateServer ()
 
static BLEAddress getAddress ()
 
static BLEScangetScan ()
 
static std::string getValue (BLEAddress bdAddress, BLEUUID serviceUUID, BLEUUID characteristicUUID)
 
static void init (std::string deviceName)
 
static void setPower (int8_t powerLevel)
 
static void setValue (BLEAddress bdAddress, BLEUUID serviceUUID, BLEUUID characteristicUUID, std::string value)
 
static std::string toString ()
 
static void whiteListAdd (BLEAddress address)
 
static void whiteListRemove (BLEAddress address)
 
static void setEncryptionLevel (ble_sec_act_t level)
 
static void setSecurityCallbacks (BLESecurityCallbacks *pCallbacks)
 
static error_t setMTU (uint16_t mtu)
 
static uint16_t getMTU ()
 
static bool getInitialized ()
 
static BLEAdvertisinggetAdvertising ()
 
static void startAdvertising ()
 
static std::map< uint16_t, conn_status_tgetPeerDevices (bool client)
 
static void addPeerDevice (void *peer, bool is_client, uint16_t conn_id)
 
static void updatePeerDevice (void *peer, bool _client, uint16_t conn_id)
 
static void removePeerDevice (uint16_t conn_id, bool client)
 
static BLEClientgetClientByGattIf (uint16_t conn_id)
 
static void deinit (bool release_memory=false)
 

Static Public Attributes

static uint16_t m_appId = 0
 
static uint16_t m_localMTU = 23
 
static ble_sec_act_t m_securityLevel = (ble_sec_act_t) 0
 

Detailed Description

BLE functions.

BLE functions.


The documentation for this class was generated from the following files: