Mqtt publishing from gateway script

The payload is supposed to be a byte array.

Try:

publishing = system.cirruslink.engine.publish("SekuritKT","[MQTT Engine]Sekurit_KTBlower_Optimizer_write",jsonstring.encode(),2,1)

edit: this topic suggests it might be a little trickier than just using .encode(), not sure: Publish to topics using system.cirruslink.engine.publish() - #2 by pturmel