fix namespace of subscript keyword
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module CommUtils
|
module CommUtils
|
||||||
|
|
||||||
# request and respond cannot be exported because Genie confuse
|
# request and respond cannot be exported because Genie confuse
|
||||||
export mqttClient, publish, request, respond
|
export mqttClient, publish, request, respond, mqttRun
|
||||||
|
|
||||||
|
|
||||||
include("interface.jl")
|
include("interface.jl")
|
||||||
|
|||||||
@@ -225,10 +225,10 @@ end
|
|||||||
"""
|
"""
|
||||||
function mqttSubOnConnect!(client::mqttClient)
|
function mqttSubOnConnect!(client::mqttClient)
|
||||||
if client.connectStatus == true && client.subStatus == false
|
if client.connectStatus == true && client.subStatus == false
|
||||||
for (k, v) in pairs(client.sub)
|
for (k, v) in pairs(client.subtopic)
|
||||||
if v != ""
|
if v != ""
|
||||||
println("sub to $k")
|
println("sub to $k")
|
||||||
subscribe(client.clientInstance, v)
|
Mosquitto.subscribe(client.clientInstance, v)
|
||||||
client.subStatus = true
|
client.subStatus = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user