Skip to content

Commit

Permalink
Update ble_gateway.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Jan 2, 2024
1 parent f64a0f1 commit 6e813c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TheengsGateway/ble_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,11 @@ def detection_callback(
data_json_copy = data_json.copy()
data_json_copy["servicedatauuid"] = uuid[4:8]
data_json_copy["servicedata"] = data.hex()
data_json = data_json_copy.copy()
self.decode_advertisement(data_json_copy)
elif data_json:
data_json["id"] = address
data_json["rssi"] = advertisement_data.rssi

self.decode_advertisement(data_json)
self.decode_advertisement(data_json)

def decode_advertisement(
self,
Expand Down

0 comments on commit 6e813c0

Please sign in to comment.