From b7b72f8bd4937681b0d473f638f1483f2ad97e21 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Wed, 17 Aug 2022 00:42:00 +0200 Subject: [PATCH] fix mac instead of uid --- .../tasmota_xsns_sensor/xsns_52_esp32_ibeacon_ble.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_52_esp32_ibeacon_ble.ino b/tasmota/tasmota_xsns_sensor/xsns_52_esp32_ibeacon_ble.ino index 84e6e01b1..79697137a 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_52_esp32_ibeacon_ble.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_52_esp32_ibeacon_ble.ino @@ -20,11 +20,11 @@ //////////////////////////////////////// // Commands: -// iBeacon 0/1 - Enable -// iBeaconOnlyAliased 0/1/2 - -// 0 = all BLE devices, +// iBeacon 0/1 - Enable +// iBeaconOnlyAliased 0/1/2 - +// 0 = all BLE devices, // 1 = only devices with any BLEAlias -// 2 = only devices which have BLEAlias starting "iB" +// 2 = only devices which have BLEAlias starting "iB" // iBeaconClear - clear list NOW // iBeaconPeriod (sec) - update period - default 10s // iBeaconTimeout (sec) - timeout period - default 30s @@ -548,7 +548,7 @@ void ibeacon_mqtt(const char *mac,const char *rssi,const char *uid,const char *m } } else { if (name[0]) { - ResponseTime_P(PSTR(",\"" D_CMND_IBEACON "\":{\"MAC\":\"%s\",\"NAME\":\"%s\",\"MAJOR\":\"%s\",\"MINOR\":\"%s\",\"MAC\":\"%s\",\"RSSI\":%d,\"STATE\":\"%s\",\"PERSEC\":%d}}"),s_uid,s_name,s_major,s_minor,s_mac,n_rssi,s_state,count); + ResponseTime_P(PSTR(",\"" D_CMND_IBEACON "\":{\"UID\":\"%s\",\"NAME\":\"%s\",\"MAJOR\":\"%s\",\"MINOR\":\"%s\",\"MAC\":\"%s\",\"RSSI\":%d,\"STATE\":\"%s\",\"PERSEC\":%d}}"),s_uid,s_name,s_major,s_minor,s_mac,n_rssi,s_state,count); } else { ResponseTime_P(PSTR(",\"" D_CMND_IBEACON "\":{\"UID\":\"%s\",\"MAJOR\":\"%s\",\"MINOR\":\"%s\",\"MAC\":\"%s\",\"RSSI\":%d,\"STATE\":\"%s\",\"PERSEC\":%d}}"),s_uid,s_major,s_minor,s_mac,n_rssi,s_state,count); }