Enable publishing of BLE data even if there is no service data for BLE device

This commit is contained in:
Florian committed 2019-06-23 08:42:49 +02:00
1 parent 9f397504e4
commit 618f8d6087
1 file changed
+3 -1
+3 -1
View File
@@ -143,6 +143,8 @@ vector<BLEdevice> devices;
}
}
}
}else{
pub((char *)mactopic.c_str(),BLEdata); // publish device even if there is no service data
}
}else{
trc(F("Filtered mac device"));
@@ -177,7 +179,7 @@ vector<BLEdevice> devices;
BLEscan();
}
}
boolean BTtoMQTT(){ // for on demande BLE scans
boolean BTtoMQTT(){ // for on demand BLE scans
BLEscan();
}
void BLEscan(){