update
This commit is contained in:
@@ -496,7 +496,7 @@ function sendMqttMsg(outgoingMsg::Dict{Symbol, T})::NamedTuple where {T<:Any}
|
||||
)
|
||||
|
||||
response = sendMqttMsg(mqttInstance, outgoingMsg)
|
||||
disconnect(mqttInstance.client)
|
||||
try disconnect(mqttInstance.client) catch end
|
||||
|
||||
return response
|
||||
end
|
||||
@@ -576,7 +576,7 @@ function sendReceiveMqttMsg(outgoingMsg::Dict{Symbol, T};
|
||||
)
|
||||
|
||||
response = sendReceiveMqttMsg(mqttInstance, :ch1, outgoingMsg; timeout=timeout, maxattempt=maxattempt)
|
||||
disconnect(mqttInstance.client)
|
||||
try disconnect(mqttInstance.client) catch end
|
||||
|
||||
return response
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user