rx meta is part of uplink msg
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
328ebe7dd2
commit
44b41f9a6e
2
lgt92.py
2
lgt92.py
|
@ -56,7 +56,7 @@ def on_message_ttn(client, userdata, msg):
|
||||||
)
|
)
|
||||||
|
|
||||||
# retrieve info about gateway
|
# retrieve info about gateway
|
||||||
gtw_id = data["rx_metadata"][0]["gateway_ids"]["gateway_id"]
|
gtw_id = data["uplink_message"]["rx_metadata"][0]["gateway_ids"]["gateway_id"]
|
||||||
try:
|
try:
|
||||||
gtw_info = requests.get(
|
gtw_info = requests.get(
|
||||||
"https://www.thethingsnetwork.org/gateway-data/gateway/" + gtw_id
|
"https://www.thethingsnetwork.org/gateway-data/gateway/" + gtw_id
|
||||||
|
|
Loading…
Reference in a new issue