Change signature of mqtt_client_connect() to take an IP addr instead of a string

This commit is contained in:
Dirk Ziegelmeier
2016-12-21 09:36:28 +01:00
parent ec1450bac4
commit 6e219b6b11
3 changed files with 6 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ void example_do_connect(mqtt_client_t *client)
to establish a connection with the server.
For now port number 1883 and MQTT version 3.1.1 is always used */
err = mqtt_client_connect(client, "192.168.0.55", mqtt_connection_cb, 0, &ci);
err = mqtt_client_connect(client, ip_addr, mqtt_connection_cb, 0, &ci);
/* For now just print the result code if something goes wrong
if(err != ERR_OK) {