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
View File
Vendored Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
Regular → Executable
View File
Regular → Executable
+2 -2
View File
@@ -133,12 +133,12 @@ Base.@kwdef mutable struct mqttClient
retainedMsgCleared= false retainedMsgCleared= false
keepalive::Int= 60 keepalive::Int= 60
end end
function mqttClient(kwargs::NamedTuple) function mqttClient(mqttClientSpec::NamedTuple)
# instantiate client data struct # instantiate client data struct
s = mqttClient() s = mqttClient()
for (k, v) in pairs(kwargs) for (k, v) in pairs(mqttClientSpec)
s.:($k) = v s.:($k) = v
end end