|Re: [mosquitto-dev] Question about publishing to an MQTTbrokerusing TLS|
> 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.
Back to the top