aboutsummaryrefslogtreecommitdiff
path: root/src/mqtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mqtt.h')
-rw-r--r--src/mqtt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mqtt.h b/src/mqtt.h
index 74b1ac0..d7b62c9 100644
--- a/src/mqtt.h
+++ b/src/mqtt.h
@@ -46,7 +46,7 @@ typedef void (*MqttClientOnMessageCallback)(MqttClient *client,
typedef void (*MqttClientOnPublishCallback)(MqttClient *client, int id);
-MqttClient *MqttClientNew(const char *clientId, int cleanSession);
+MqttClient *MqttClientNew(const char *clientId);
void MqttClientFree(MqttClient *client);
@@ -69,7 +69,7 @@ void MqttClientSetOnPublish(MqttClient *client,
MqttClientOnPublishCallback cb);
int MqttClientConnect(MqttClient *client, const char *host, short port,
- int keepAlive);
+ int keepAlive, int cleanSession);
int MqttClientDisconnect(MqttClient *client);