BLE sensors data through a connect, LYWSD03MMC and MHO-C401 add (#736)

* Add LYWSD03MMC and MHO-C401 device
and an associated BLE connect mechanism as these devices advertise only encrypted data
-free manufacturer data
-update library

* Implement scans number before connect
-Add the possibility to do a connect every X scan
-Rename variables for consistency
-Some refactoring for improved code reading
This commit is contained in:
Florian authored and GitHub committed 2020-08-18 12:28:45 -05:00
1 parent e9910a9165
commit d6d42bfce5
6 files changed
+237 -39

No files matched your search

+1
View File
@@ -1293,6 +1293,7 @@ void stateMeasures() {
SYSdata["lowpowermode"] = (int)low_power_mode;
# endif
SYSdata["interval"] = BLEinterval;
SYSdata["scanbcnct"] = BLEscanBeforeConnect;
# endif
# ifdef ZgatewayRFM69
modules = modules + ZgatewayRFM69;