From 967208aa05307a04cf70e544a4e353899f347fb6 Mon Sep 17 00:00:00 2001 From: Timotej S <6674623+underhood@users.noreply.github.com> Date: Mon, 9 Jan 2023 08:51:00 +0700 Subject: MQTT5 Topic Alias (#14148) * bump websockets * add new files to makefile * set topic aliases for used topics --- aclk/aclk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aclk/aclk.c') 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); } -- cgit v1.2.3