Nol.A SDK Library
24.11.0
For IoT System Software Development
|
BLE functions. More...
#include <BLEDevice.hpp>
Static Public Member Functions | |
static BLEClient * | createClient () |
static BLEServer * | createServer () |
static BLEAddress | getAddress () |
static BLEScan * | getScan () |
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 BLEAdvertising * | getAdvertising () |
static void | startAdvertising () |
static std::map< uint16_t, conn_status_t > | getPeerDevices (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 BLEClient * | getClientByGattIf (uint16_t conn_id) |
static void | deinit (bool release_memory=false) |
Static Public Attributes | |
static uint16_t | m_appId |
static uint16_t | m_localMTU |
static ble_sec_act_t | m_securityLevel |
BLE functions.
BLE functions.