[BT] - Adaptive scan (#1440)

* [BT] Adaptive scan

Add adaptive scan to avoid users setting parameters and deduct automatically the scan requirements from the list of devices

---------
Co-authored-by: DigiH <github@digih.net>
This commit is contained in:
FlorianandDigiH authored and GitHub committed 2023-02-07 17:36:18 -06:00
1 parent 05f83c5f80
commit f283327998
7 files changed
+51 -44

No files matched your search

+3 -23
View File
@@ -239,7 +239,7 @@ build_flags =
'-DLED_SEND_RECEIVE=2'
'-DLED_SEND_RECEIVE_ON=0'
'-DGateway_Name="OpenMQTTGateway_ESP32_BLE"'
custom_description = Regular BLE gateway with one scan every 55s per default
custom_description = Regular BLE gateway with adaptive scanning activated, automatically adapts the scan parameters depending on your devices
[env:esp32dev-ble-openhab]
platform = ${com.esp32_platform}
@@ -257,7 +257,7 @@ build_flags =
'-DLED_SEND_RECEIVE_ON=0'
'-DOpenHABDiscovery=true'
'-DGateway_Name="OpenMQTTGateway_ESP32_BLE_OH"'
custom_description = BLE gateway with one scan every 55s per default and OpenHAB discovery
custom_description = BLE gateway with OpenHAB discovery and adaptive scanning activated, automatically adapts the scan parameters depending on your devices
[env:esp32dev-ble-mqtt-undecoded]
platform = ${com.esp32_platform}
@@ -302,26 +302,6 @@ build_flags =
'-DAWS_IOT=true'
custom_description = BLE gateway with AWS integration capability
[env:esp32dev-ble-cont]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.wifimanager32}
${libraries.ble}
${libraries.decoder}
build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DLED_SEND_RECEIVE=2'
'-DLED_SEND_RECEIVE_ON=0'
'-DGateway_Name="OpenMQTTGateway_ESP32_BLE_C"'
'-DTimeBtwRead=0'
'-DScan_duration=3000'
'-DAttemptBLEConnect=false'
custom_description = Regular BLE gateway with continuous scan and no BLE connection attempt per default
[env:esp32feather-ble]
platform = ${com.esp32_platform}
board = featheresp32
@@ -360,7 +340,7 @@ build_flags =
; '-DTimeBtwRead=155000'
; '-DScan_duration=2000'
; '-DAttemptBLEConnect=false'
; '-DActiveBLEScan=false'
; '-DAdaptiveBLEScan=false'
; '-DESPWifiManualSetup=true'
; '-DMQTT_USER="lolin-esp32"'
; '-DMQTT_PASS="your_password"'