mqttagent

MQTT Lua Agent
git clone https://git.instinctive.eu/mqttagent.git
Log | Files | Refs | README | LICENSE

commit 01c5818efb2e99625f581d6999cc92df42a63953
parent 5618ba4b61d9869d4f4798bf99fdc55c65c020d4
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Fri, 21 Feb 2025 20:04:02 +0000

MQTT client configuration is no longer stored in Lua object
Diffstat:
Mmqttagent.go | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/mqttagent.go b/mqttagent.go @@ -285,7 +285,6 @@ func stateTimerTable(L *lua.LState) *lua.LTable { const luaMqttClientTypeName = "mqttclient" const keyClient = 1 const keySubTable = 2 -const keyConfig = 3 func registerMqttClientType(L *lua.LState) { mt := L.NewTypeMetatable(luaMqttClientTypeName) @@ -399,7 +398,6 @@ func newMqttClient(L *lua.LState) int { res := L.NewTable() L.RawSetInt(res, keyClient, newUserData(L, client)) L.RawSetInt(res, keySubTable, L.NewTable()) - L.RawSetInt(res, keyConfig, newUserData(L, config)) L.SetMetatable(res, L.GetTypeMetatable(luaMqttClientTypeName)) L.RawSetInt(stateCnxTable(L), id, res) L.Push(res)