diff --git a/ZgatewayBT.ino b/ZgatewayBT.ino index 3ed36a9..502d774 100644 --- a/ZgatewayBT.ino +++ b/ZgatewayBT.ino @@ -143,6 +143,8 @@ vector 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 devices; BLEscan(); } } - boolean BTtoMQTT(){ // for on demande BLE scans + boolean BTtoMQTT(){ // for on demand BLE scans BLEscan(); } void BLEscan(){