Browse files

reset CleanSession to: NO

  • Loading branch information...
1 parent 44e65ee commit b7bcbb9b97e460197f8b93fa4100ce7d130afcc2 @horacex horacex committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/MosquittoClient.m
View
2 Classes/MosquittoClient.m
@@ -81,7 +81,7 @@ - (MosquittoClient*) initWithClientId: (NSString*) clientId {
[self setHost: nil];
[self setPort: 1883];
[self setKeepAlive: 60];
- [self setCleanSession: NO]; //NOTE: this isdisable clean to keep the broker remember this client
+ [self setCleanSession: YES]; //NOTE: this isdisable clean to keep the broker remember this client
mosq = mosquitto_new(cstrClientId, cleanSession, self);
mosquitto_connect_callback_set(mosq, on_connect);

0 comments on commit b7bcbb9

Please sign in to comment.