Skip to content

Commit

Permalink
Document updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Nov 16, 2015
1 parent 3cab5e2 commit f58f8aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/mosquitto.h
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ libmosq_EXPORT int mosquitto_disconnect(struct mosquitto *mosq);
* Note that although the MQTT protocol doesn't use message ids
* for messages with QoS=0, libmosquitto assigns them message ids
* so they can be tracked with this parameter.
* topic - null terminated string of the topic to publish to.
* payloadlen - the size of the payload (bytes). Valid values are between 0 and
* 268,435,455.
* payload - pointer to the data to send. If payloadlen > 0 this must be a
Expand Down
4 changes: 2 additions & 2 deletions man/libmosquitto.3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ int main(int argc, char *argv[])
return 1;
}

while(!mosquitto_loop(mosq, -1, 1)){
}
mosquitto_loop_forever(mosq, -1, 1);

mosquitto_destroy(mosq);
mosquitto_lib_cleanup();
return 0;
Expand Down

0 comments on commit f58f8aa

Please sign in to comment.