summaryrefslogtreecommitdiffstats
path: root/aclk/aclk.c
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2023-01-09 08:51:00 +0700
committerGitHub <noreply@github.com>2023-01-09 08:51:00 +0700
commit967208aa05307a04cf70e544a4e353899f347fb6 (patch)
treea436eabb7e09e280ec1a1f93feeb70dc9257e814 /aclk/aclk.c
parentbadd17fb4eec602244d4c343dd25cc00ad182686 (diff)
MQTT5 Topic Alias (#14148)
* bump websockets * add new files to makefile * set topic aliases for used topics
Diffstat (limited to 'aclk/aclk.c')
-rw-r--r--aclk/aclk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index c3d0fc891e..5afbba274e 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -385,6 +385,10 @@ static inline void mqtt_connected_actions(mqtt_wss_client client)
aclk_rcvd_cloud_msgs = 0;
aclk_connection_counter++;
+ aclk_topic_cache_iter_t iter = ACLK_TOPIC_CACHE_ITER_T_INITIALIZER;
+ while ((topic = (char*)aclk_topic_cache_iterate(&iter)) != NULL)
+ mqtt_wss_set_topic_alias(client, topic);
+
aclk_send_agent_connection_update(client, 1);
}