update
This commit is contained in:
@@ -535,7 +535,10 @@ end
|
|||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
function sendMqttMsg(outgoingMsg::Dict{Symbol, T})::NamedTuple where {T<:Any}
|
function sendMqttMsg(outgoingMsg::Dict{Symbol, T})::NamedTuple where {T<:Any}
|
||||||
mqttMsgReceiveTopic = ["/GeneralUtils_sendMqttMsg/$(outgoingMsg[:msgMeta][:senderId])"]
|
|
||||||
|
# sendMqttMsg() doesn't need to receive msg but mqttClientInstance_v2 requires to have receive topic
|
||||||
|
mqttMsgReceiveTopic = "/GeneralUtils_sendMqttMsg/$(outgoingMsg[:msgMeta][:senderId])"
|
||||||
|
|
||||||
mqttMsgReceiveChannel = (ch1=Channel(8),)
|
mqttMsgReceiveChannel = (ch1=Channel(8),)
|
||||||
keepaliveChannel = Channel(8)
|
keepaliveChannel = Channel(8)
|
||||||
|
|
||||||
@@ -548,7 +551,7 @@ function sendMqttMsg(outgoingMsg::Dict{Symbol, T})::NamedTuple where {T<:Any}
|
|||||||
|
|
||||||
mqttInstance = mqttClientInstance_v2(
|
mqttInstance = mqttClientInstance_v2(
|
||||||
outgoingMsg[:msgMeta][:mqttBrokerAddress],
|
outgoingMsg[:msgMeta][:mqttBrokerAddress],
|
||||||
mqttMsgReceiveTopic,
|
[mqttMsgReceiveTopic],
|
||||||
mqttMsgReceiveChannel,
|
mqttMsgReceiveChannel,
|
||||||
keepaliveChannel,
|
keepaliveChannel,
|
||||||
onMsgCallback;
|
onMsgCallback;
|
||||||
|
|||||||
Reference in New Issue
Block a user