This commit is contained in:
2023-11-02 08:43:36 +00:00
parent bd1c6fdcef
commit 047d3d05e0
15 changed files with 2 additions and 2 deletions
Regular → Executable
+2 -2
View File
@@ -133,12 +133,12 @@ Base.@kwdef mutable struct mqttClient
retainedMsgCleared= false
keepalive::Int= 60
end
function mqttClient(kwargs::NamedTuple)
function mqttClient(mqttClientSpec::NamedTuple)
# instantiate client data struct
s = mqttClient()
for (k, v) in pairs(kwargs)
for (k, v) in pairs(mqttClientSpec)
s.:($k) = v
end