mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
Compare commits
2 Commits
14826c10cd
...
9d77256051
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d77256051 | ||
|
|
d3e7a13e1f |
@@ -98,7 +98,7 @@ board_build.partitions = esp32_partitions.csv
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
laxilef/ESP32Scheduler@^1.0.1
|
||||
nimble_lib = h2zero/NimBLE-Arduino@^2.3.6
|
||||
nimble_lib = h2zero/NimBLE-Arduino@2.3.3
|
||||
lib_ignore =
|
||||
extra_scripts =
|
||||
post:tools/esp32.py
|
||||
|
||||
@@ -405,7 +405,6 @@ protected:
|
||||
|
||||
#if USE_BLE
|
||||
void cleanBleInstances() {
|
||||
#if USE_BLE
|
||||
if (!NimBLEDevice::isInitialized()) {
|
||||
return;
|
||||
}
|
||||
@@ -442,10 +441,13 @@ protected:
|
||||
NimBLEDevice::deleteClient(client);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void pollingBleSensors() {
|
||||
if (!Sensors::getAmountByType(Sensors::Type::BLUETOOTH, true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!NimBLEDevice::isInitialized() && millis() > 5000) {
|
||||
Log.sinfoln(FPSTR(L_SENSORS_BLE), F("Initialized"));
|
||||
BLEDevice::init("");
|
||||
|
||||
Reference in New Issue
Block a user