Document updates.
This commit is contained in:
parent
3cab5e2e69
commit
f58f8aac0f
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user