mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-09 12:01:15 +00:00
revert filtering back to 3 packets
This commit is contained in:
parent
dd14a3a350
commit
d358655a93
@ -53,7 +53,7 @@ def lambda_handler(event, context):
|
||||
incoming_payloads = json.loads(sns_message["Message"])
|
||||
|
||||
#send only the first, last and every 5th packet
|
||||
payloads = [incoming_payloads[-1]]
|
||||
payloads = [incoming_payloads[0]] + incoming_payloads[1:-1:5][1:] + [incoming_payloads[-1]]
|
||||
for payload in payloads:
|
||||
|
||||
body = json.dumps(payload)
|
||||
|
Loading…
x
Reference in New Issue
Block a user