Skip to content

Commit 882608f

Browse files
committed
mqtt-agent: Increase MQTT Agent keep alive interval
The `MQTT_AGENT_KEEP_ALIVE_INTERVAL_SECONDS` is increased to 100 as in case of using SOFTWARE inference with speech recognition application the connection is dropped before the ML Inference is done as the software inference is generally much slower compared to the Ethos NPU. This connection drop cause the ML inference to have wrong results as the task is interrupted. Hence, increasing the keep alive interval to avoid the connection drop. Signed-off-by: Ahmed Ismail <[email protected]>
1 parent 89666d5 commit 882608f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/aws_iot/coremqtt_agent/integration/src/mqtt_agent_task.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* FreeRTOS V202012.00
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4-
* Copyright 2023-2024 Arm Limited and/or its affiliates
4+
* Copyright 2023-2025 Arm Limited and/or its affiliates
55
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -141,7 +141,7 @@
141141
* absence of sending any other Control Packets, the Client MUST send a
142142
* PINGREQ Packet.
143143
*/
144-
#define MQTT_AGENT_KEEP_ALIVE_INTERVAL_SECONDS ( 60U )
144+
#define MQTT_AGENT_KEEP_ALIVE_INTERVAL_SECONDS ( 100U )
145145

146146
/**
147147
* @brief Socket send and receive timeouts to use. Specified in milliseconds.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ota-orchestrator: Add multiple enhancements and fixes.
2+
mqtt-agent: Increase MQTT Agent keep alive interval.

0 commit comments

Comments
 (0)