Skip to content

Commit

Permalink
Add id and rssi keys to data sent to decoder in Python example (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem authored Feb 5, 2023
1 parent e752ce9 commit b53ab08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/python/ScanAndDecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def detection_callback(device, advertisement_data):
data_json['name'] = advertisement_data.local_name

if data_json:
data_json["id"] = device.address
data_json["rssi"] = device.rssi
print("data sent to decoder: ", json.dumps(data_json))
data_json = dble(json.dumps(data_json))
print("TheengsDecoder found device:", data_json)
Expand Down

0 comments on commit b53ab08

Please sign in to comment.