Enable deactivation of BLE connect (#895)

Useful if you want to scan continuously for BLE device, in this case you should deactivate the BLE connect to avoid concurrency between scan and connect
This commit is contained in:
Florian authored and GitHub committed 2021-03-14 12:53:26 -05:00
1 parent e2feb0bc24
commit 8afb1c5223
4 files changed
+41 -3

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ extern void launchBTDiscovery();
extern int btQueueBlocked;
extern int btQueueLengthSum;
extern int btQueueLengthCount;
# ifndef AttemptBLECOnnect
# define AttemptBLECOnnect true //do we by default attempt a BLE connection to sensors with ESP32
# endif
bool bleConnect = AttemptBLECOnnect;
#endif
/*----------------------BT topics & parameters-------------------------*/