Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Question about publishing to an MQTTbrokerusing TLS

Hi Roger.

> mosquitto_publish() doesn't block waiting until the message is sent,
> so your program will exit very quickly.

That is what I figured. I just haven't seen this issue because of the connection problem.

> You should call one of mosquitto_loop_start() or
> mosquitto_loop_forever() in order that the network traffic actually
> gets processed.

Would this affect the connection? It isn't clear from the API documentation.

- Mark


Back to the top