add MQTT security and local connection port in struct