@@ -88,7 +88,7 @@ Connects to the broker specified by the given host, port, and secure options.
#### Parameters
-`host` host, domain or IP (string)
-`port` broker port (number), default 1883
-`secure` 0/1 for `false`/`true`, default 0. [As per #996](https://github.com/nodemcu/nodemcu-firmware/issues/996#issuecomment-178053308) secure connections use **TLS 1.1** with the following cipher suites: `TLS_RSA_WITH_AES_128_CBC_SHA`, `TLS_RSA_WITH_AES_256_CBC_SHA`, `TLS_RSA_WITH_RC4_128_SHA`, and `TLS_RSA_WITH_RC4_128_MD5`.
-`secure` 0/1 for `false`/`true`, default 0. Take note of constraints documented in the [net module](net.md).
-`autoreconnect` 0/1 for `false`/`true`, default 0
-`function(client)` callback function for when the connection was established
-`function(client, reason)` callback function for when the connection could not be established