We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5222d21 + a8f98ea commit 8b068b3Copy full SHA for 8b068b3
cpp_utils/BLEDevice.cpp
@@ -527,4 +527,8 @@ esp_err_t BLEDevice::setMTU(uint16_t mtu) {
527
uint16_t BLEDevice::getMTU() {
528
return m_localMTU;
529
}
530
+
531
+bool BLEDevice::getInitialized() {
532
+ return initialized;
533
+}
534
#endif // CONFIG_BT_ENABLED
cpp_utils/BLEDevice.h
@@ -42,6 +42,7 @@ class BLEDevice {
42
static void setSecurityCallbacks(BLESecurityCallbacks* pCallbacks);
43
static esp_err_t setMTU(uint16_t mtu);
44
static uint16_t getMTU();
45
+ static bool getInitialized(); // Returns the state of the device, is it initialized or not?
46
47
private:
48
static BLEServer *m_pServer;
0 commit comments