updating mqtt-connection api