MQTT Transmission Gateway Scripting

You shouldn’t need to create any additional configuration via .createConfig() if the MQTT Engine Server Setting configuration already exists. When making the engine.publish() call, the first argument should be the MQTT Engine Server Setting name as it shows up in the Ignition web portal. For example, your engine.publish() call is looking for an MQTT Engine Server Setting with the name “Server”. I hope this helps.