doc: mqtt_client: Update example code after adding port parameter to mqtt_client_connect()
Signed-off-by: Axel Lin <axel.lin@ingics.com>
diff --git a/doc/mqtt_client.txt b/doc/mqtt_client.txt
index eb096a3..3e67def 100644
--- a/doc/mqtt_client.txt
+++ b/doc/mqtt_client.txt
@@ -36,9 +36,9 @@
/* Initiate client and connect to server, if this fails immediately an error code is returned
otherwise mqtt_connection_cb will be called with connection result after attempting
to establish a connection with the server.
- For now port number 1883 and MQTT version 3.1.1 is always used */
+ For now MQTT version 3.1.1 is always used */
- err = mqtt_client_connect(client, ip_addr, mqtt_connection_cb, 0, &ci);
+ err = mqtt_client_connect(client, ip_addr, MQTT_PORT, mqtt_connection_cb, 0, &ci);
/* For now just print the result code if something goes wrong
if(err != ERR_OK) {