Skip to content

Commit

Permalink
Tag properties visibility (#1432)
Browse files Browse the repository at this point in the history
Tag properties visibility to be included with "pubadvdata" setting
  • Loading branch information
DigiH authored Feb 2, 2023
1 parent 2c75940 commit bd9dcf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/use/ble.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ If you want to enable this feature:

`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:

Expand Down
5 changes: 5 additions & 0 deletions main/ZgatewayBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,11 @@ void PublishDeviceData(JsonObject& BLEdata, bool processBLEData) {
BLEdata.remove("manufacturerdata");
BLEdata.remove("mac_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
pubBT(BLEdata);
Expand Down

0 comments on commit bd9dcf1

Please sign in to comment.