Document updates.

This commit is contained in:
Roger A. Light 2015-11-16 16:47:12 +00:00
parent 3cab5e2e69
commit f58f8aac0f
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;