According to the API, the mosquitto_want_write() function returns TRUE when data to be used in the socket is prepared.
But what does it mean to have data ready? Where is the data being prepared? What function call can prepare the data?
Is the data prepared by the call Mosquito_publish()?
Unfortunately, I couldn't find any link related to this. I would appreciate it if you could let me know if there is any data or link related to this.