Skip to content

Commit

Permalink
Update TTN json path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmadden173 committed Feb 24, 2024
1 parent cd13358 commit c1eb483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/resources/sensor_data_ttn.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def post(self):
Response indicating success or failure. See util.process_measurement
for full description.
"""

import pdb; pdb.set_trace()

content_type = request.headers.get("Content-Type")

Expand All @@ -40,7 +42,7 @@ def post(self):
raise ValueError("POST request must be application/json")

# get payload
payload_str = uplink_json["data"]["uplink_message"]["frm_payload"]
payload_str = uplink_json["uplink_message"]["frm_payload"]
payload = base64.b64decode(payload_str)

resp = process_measurement(payload)
Expand Down

0 comments on commit c1eb483

Please sign in to comment.