Scan_Duration as MQTT command (#1516)
Scan_Duration as runtime MQTT command 'scanduration'
This commit is contained in:
1 parent
7567552a58
commit
c7547044fe
3 files changed
+25
-3
No files matched your search
+5
-1
@@ -66,7 +66,10 @@ extern int btQueueLengthCount;
|
||||
#define MinimumRSSI -100 //default minimum rssi value, all the devices below -100 will not be reported
|
||||
|
||||
#ifndef Scan_duration
|
||||
# define Scan_duration 10000 //define the time for a scan; in milliseconds
|
||||
# define Scan_duration 10000 //define the duration for a scan; in milliseconds
|
||||
#endif
|
||||
#ifndef MinScanDuration
|
||||
# define MinScanDuration 1000 //minimum duration for a scan; in milliseconds
|
||||
#endif
|
||||
#ifndef BLEScanInterval
|
||||
# define BLEScanInterval 52 // How often the scan occurs / switches channels; in milliseconds,
|
||||
@@ -144,6 +147,7 @@ struct BTConfig_s {
|
||||
unsigned long intervalActiveScan; // Time between 2 active scans when generally passive scanning
|
||||
unsigned long BLEinterval; // Time between 2 scans
|
||||
unsigned long intervalConnect; // Time between 2 connects
|
||||
unsigned long scanDuration; // Duration for a scan; in milliseconds
|
||||
bool pubOnlySensors; // Publish only the identified sensors (like temperature sensors)
|
||||
bool pubRandomMACs; // Publish devices which randomly change their MAC address
|
||||
bool presenceEnable; // Publish into Home Assistant presence topic
|
||||
|
||||
Reference in new issue
Block a user