Report the current state of the connection
Integer — A connection state code
This method provides your code with a means to determine the state of the connection linking the target mqttclient object and the MQTT broker.
The value returned by the method will be one of the following:
|Connection State Code||State|