From 618f8d6087140137ec09a41dc89785da5c2fdb53 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sun, 23 Jun 2019 08:42:49 +0200 Subject: [PATCH] Enable publishing of BLE data even if there is no service data for BLE device --- ZgatewayBT.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(){