Skip to content

Commit 7f296ff

Browse files
authored
update Ibeacon keys naming (#1045)
lower case as the other json keys
1 parent ad782c4 commit 7f296ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

main/ZgatewayBT.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,11 +1752,13 @@ JsonObject& process_ibeacon(JsonObject& BLEdata) {
17521752
char proxUUID[33] = {NULL};
17531753
strncpy(&mfid[0], manufacturerdata, 4);
17541754
strncpy(&proxUUID[0], manufacturerdata + 8, 32);
1755-
BLEdata.set("MFID:", mfid);
1756-
BLEdata.set("UUID:", proxUUID);
1757-
BLEdata.set("Major:", (uint16_t)value_from_hex_data(manufacturerdata, 40, 4, false, false));
1758-
BLEdata.set("Minor:", (uint16_t)value_from_hex_data(manufacturerdata, 44, 4, false, false));
1759-
BLEdata.set("Power:", (int8_t)value_from_hex_data(manufacturerdata, 48, 4, false));
1755+
BLEdata.set("mfid", mfid);
1756+
BLEdata.set("uuid", proxUUID);
1757+
BLEdata.set("major", (uint16_t)value_from_hex_data(manufacturerdata, 40, 4, false, false));
1758+
BLEdata.set("minor", (uint16_t)value_from_hex_data(manufacturerdata, 44, 4, false, false));
1759+
BLEdata.set("power", (int8_t)value_from_hex_data(manufacturerdata, 48, 4, false));
1760+
1761+
return BLEdata;
17601762
}
17611763

17621764
JsonObject& process_tpms(JsonObject& BLEdata) {

0 commit comments

Comments
 (0)