summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2023-04-18 12:08:03 +0200
committerGitHub <noreply@github.com>2023-04-18 12:08:03 +0200
commit19ae01efcc84bb1870b928a646a071b22f853b0b (patch)
tree2c92273ea3e0f1c6d2be0d8cca639818b6412f56 /aclk
parent21ea06faf9b3d64d18e53b1333c656c6856e8e2d (diff)
minor - remove RX_MSGLEN_MAX (#14918)
remove RX_MSGLEN_MAX
Diffstat (limited to 'aclk')
-rw-r--r--aclk/aclk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index 279c5f1e03..1ac3c9a2f9 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -249,14 +249,10 @@ void aclk_mqtt_wss_log_cb(mqtt_wss_log_type_t log_type, const char* str)
}
}
-//TODO prevent big buffer on stack
-#define RX_MSGLEN_MAX 4096
static void msg_callback(const char *topic, const void *msg, size_t msglen, int qos)
{
UNUSED(qos);
aclk_rcvd_cloud_msgs++;
- if (msglen > RX_MSGLEN_MAX)
- error("Incoming ACLK message was bigger than MAX of %d and got truncated.", RX_MSGLEN_MAX);
debug(D_ACLK, "Got Message From Broker Topic \"%s\" QOS %d", topic, qos);