i have a script in gateway tag change to publish in mqtt …but i am not getting the values in concerned topic.can anyone suggest me a solution?
below is my code.
import json
import urllib
import time
lowerpredict = system.tag.read("[Sekurit Blower Optimizer]KT/read/LowerPredict").value
upperpredict = system.tag.read("[Sekurit Blower Optimizer]KT/read/UpperPredict").value
publishdata = {“Lowerpredict”:lowerpredict,“Upperpredict”:upperpredict}
jsondata = json.loads(json.dumps(publishdata))
jsonstring = system.util.jsonEncode(jsondata)
publishing = system.cirruslink.engine.publish(“SekuritKT”,"[MQTT Engine]Sekurit_KTBlower_Optimizer_write",jsonstring,2,1)