iBeacon: Flag to use UUID in topic or presence (and fixes) (#1226)
* Add useBeaconUuidForPresence flag (disabled by default) * Change MQTTDecodeTopic to include only the sufixe * Rename mac_address to topic and remove unnecessary variable mactopic * Add useBeaconUuidForTopic flag (disabled by default) * Fix jsonPublishing #ifdef -> #if * Revert commit 02e2d03
This commit is contained in:
2 files changed
+26
-13
No files matched your search
+9
-1
@@ -53,7 +53,7 @@ bool bleConnect = AttemptBLECOnnect;
|
||||
#define subjectBTtoMQTT "/BTtoMQTT"
|
||||
#define subjectMQTTtoBTset "/commands/MQTTtoBT/config"
|
||||
// Uncomment to send undecoded device data to another gateway device for decoding
|
||||
// #define MQTTDecodeTopic "BTtoMQTT/undecoded"
|
||||
// #define MQTTDecodeTopic "undecoded"
|
||||
|
||||
#define MinimumRSSI -100 //default minimum rssi value, all the devices below -90 will not be reported
|
||||
|
||||
@@ -127,9 +127,17 @@ bool hassPresence = HassPresence;
|
||||
# define pubBLEServiceUUID false // define true if you want to publish the service UUID data
|
||||
#endif
|
||||
|
||||
#ifndef useBeaconUuidForTopic
|
||||
# define useBeaconUuidForTopic false // define true to use iBeacon UUID as topic, instead of sender (random) mac address
|
||||
#endif
|
||||
|
||||
/*-------------------HOME ASSISTANT ROOM PRESENCE ----------------------*/
|
||||
#define subjectHomePresence "home_presence/" // will send Home Assistant room presence message to this topic (first part is same for all rooms, second is room name)
|
||||
|
||||
#ifndef useBeaconUuidForPresence
|
||||
# define useBeaconUuidForPresence false // //define true to use iBeacon UUID as for presence, instead of sender mac (random) address
|
||||
#endif
|
||||
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
#if !defined(BT_RX) || !defined(BT_TX)
|
||||
# ifdef ESP8266
|
||||
|
||||
Reference in new issue
Block a user