From e40cd71630344cc1f9bda4934d5022fc7b42c858 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Thu, 19 Dec 2024 18:46:44 +0700 Subject: [PATCH] update --- src/communication.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/communication.jl b/src/communication.jl index 616b69c..5a9b5cf 100644 --- a/src/communication.jl +++ b/src/communication.jl @@ -80,6 +80,7 @@ mutable struct mqttClientInstance_v2 <: mqttClientInstance keepaliveCheckInterval::Integer # second lastTimeMqttConnCheck::Union{DateTime, Nothing} multiMsg::String # "single", "metadata", "datapart" + latestMsg end """ MQTT client v2. The difference between client v1 and v2 is v2 allows multiple msgReceiveChannel without having to redefine mqttClientInstance again like in v1. @@ -178,6 +179,7 @@ function mqttClientInstance_v2( keepaliveCheckInterval, nothing, multiMsg, + nothing, # store latest message to prevent doing the same massage twice ) return instance