Tag properties visibility (#1432)
Tag properties visibility to be included with "pubadvdata" setting
This commit is contained in:
1 parent
2c759408c3
commit
bd9dcf1ec8
2 files changed
+6
-1
No files matched your search
+1
-1
@@ -230,7 +230,7 @@ If you want to enable this feature:
|
|||||||
|
|
||||||
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"filterConnectable":true}'`
|
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"filterConnectable":true}'`
|
||||||
|
|
||||||
## ADVANCED: Publishing advertisement data (default: false)
|
## ADVANCED: Publishing advertisement and advanced data (default: false)
|
||||||
|
|
||||||
If you want to enable this feature:
|
If you want to enable this feature:
|
||||||
|
|
||||||
|
|||||||
@@ -962,6 +962,11 @@ void PublishDeviceData(JsonObject& BLEdata, bool processBLEData) {
|
|||||||
BLEdata.remove("manufacturerdata");
|
BLEdata.remove("manufacturerdata");
|
||||||
BLEdata.remove("mac_type");
|
BLEdata.remove("mac_type");
|
||||||
BLEdata.remove("adv_type");
|
BLEdata.remove("adv_type");
|
||||||
|
// tag device properties
|
||||||
|
BLEdata.remove("type");
|
||||||
|
BLEdata.remove("cidc");
|
||||||
|
BLEdata.remove("acts");
|
||||||
|
BLEdata.remove("cont");
|
||||||
}
|
}
|
||||||
if (!BTConfig.pubOnlySensors || BLEdata.containsKey("model") || BLEdata.containsKey("distance")) { // Identified device
|
if (!BTConfig.pubOnlySensors || BLEdata.containsKey("model") || BLEdata.containsKey("distance")) { // Identified device
|
||||||
pubBT(BLEdata);
|
pubBT(BLEdata);
|
||||||
|
|||||||
Reference in new issue
Block a user