Skip to content

Commit

Permalink
update Ibeacon keys naming (#1045)
Browse files Browse the repository at this point in the history
lower case as the other json keys
  • Loading branch information
1technophile authored Jul 31, 2021
1 parent ad782c4 commit 7f296ff
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main/ZgatewayBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1752,11 +1752,13 @@ JsonObject& process_ibeacon(JsonObject& BLEdata) {
char proxUUID[33] = {NULL};
strncpy(&mfid[0], manufacturerdata, 4);
strncpy(&proxUUID[0], manufacturerdata + 8, 32);
BLEdata.set("MFID:", mfid);
BLEdata.set("UUID:", proxUUID);
BLEdata.set("Major:", (uint16_t)value_from_hex_data(manufacturerdata, 40, 4, false, false));
BLEdata.set("Minor:", (uint16_t)value_from_hex_data(manufacturerdata, 44, 4, false, false));
BLEdata.set("Power:", (int8_t)value_from_hex_data(manufacturerdata, 48, 4, false));
BLEdata.set("mfid", mfid);
BLEdata.set("uuid", proxUUID);
BLEdata.set("major", (uint16_t)value_from_hex_data(manufacturerdata, 40, 4, false, false));
BLEdata.set("minor", (uint16_t)value_from_hex_data(manufacturerdata, 44, 4, false, false));
BLEdata.set("power", (int8_t)value_from_hex_data(manufacturerdata, 48, 4, false));

return BLEdata;
}

JsonObject& process_tpms(JsonObject& BLEdata) {
Expand Down

0 comments on commit 7f296ff

Please sign in to comment.