27.05.2025, 13:41
(24.04.2025, 12:25)admin Wrote: Try this:
Code:data = {
direction = 'both',
topic = 'test2',
address = '0/0/1',
retain = '1',
buswrite = '1',
qospub = '0',
qossub = '0',
delta = '',
throttle = '',
jsonpath = '',
boolon = '',
booloff = '',
}
dofile('/www/apps/data/mqtt-client/lua/lib.lua')
res = save_topic(data)
log(res)
reload()
Regarding this, any good ideas on how to implement this based on GA names? As far as I can see we need to run the "save_topic" once for each new topic.