Viewing posts tagged MQTT C libmosquitto

Libmosquitto client with external poll()

I had some problem lately with implementing a libmosquitto [ ] client where i also needed to handle an other file descriptot (namely: a serial port) next to the libmosquitto client socket. Unfortunately the libmosquitto documentation is  somewhat laconic on this, so i needed some experimenting and some hints from the  [mosquitto-dev] mailing list. As  I couldn't find a full example for this online, I think it's worth to publish it here.