diff --git a/src/NimBLEAdvertising.cpp b/src/NimBLEAdvertising.cpp index 894a6c0..b38ed16 100644 --- a/src/NimBLEAdvertising.cpp +++ b/src/NimBLEAdvertising.cpp @@ -63,6 +63,8 @@ NimBLEAdvertising::NimBLEAdvertising() : m_slaveItvl() { m_customScanResponseData = false; m_scanResp = true; m_advDataSet = false; + // Set this to non-zero to prevent auto start if host reset before started by app. + m_duration = BLE_HS_FOREVER; } // NimBLEAdvertising