diff --git a/dhcp_script.py b/dhcp_script.py index 64e67fe..d159266 100644 --- a/dhcp_script.py +++ b/dhcp_script.py @@ -67,7 +67,7 @@ def m_pub(current_dir, mosquittoKeySet, mqttCfg, topicPath, data): command = "mosquitto_pub -h " command += mqttCfg['host'] command += " -p " - command += mqttCfg['port'] + command += str(mqttCfg['port']) command += " -u " command += mosquittoKeySet['user'] command += " -P "