Ensure behavior: check state of MQTT connection before proceding with handshake in behavior init
This method would replace the hard coded waiting time in the Ensure behavior init method.
This method would replace the hard coded waiting time in the Ensure behavior init method.