Hi Rene, How you create a client that does both publish and subscribe really depends on what you need to achieve. I've created a simple C++ example that does both publish and subscribe. It subscribes to a celsius temperature feed, converts the temperature into farenheit and republishes the same data. You can see this example at https://bitbucket.org/oojah/mosquitto/src/d22f87ef34f0/examples/temperature_conversion
Cheers, Roger On Sat, Mar 3, 2012 at 1:49 PM, Rene Lösch <[email protected]> wrote: > Hello, > > I'm looking for some help building a MQTT client which combines both, > subscription-functionality and publish-functionality. I'm using the > mosquitto C++ wrapper for mosquitto lib and I have already a prototype which > is able to do that. The client-loop-method together with the do-while-loop > is processed by a separated thread, but I'm unsure if that is the right way. > My only clues are Roger's sources for a single pub_client and sub_client > written in C. > > Does someone have a "construction manual" for me or provide a small > setp-by-step guide how to build such a client? > Any advice on ways how to combine these functionalities is welcome, also for > language C. > > Thanks, > Rene > > _______________________________________________ > Mailing list: https://launchpad.net/~mqtt-users > Post to : [email protected] > Unsubscribe : https://launchpad.net/~mqtt-users > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~mqtt-users Post to : [email protected] Unsubscribe : https://launchpad.net/~mqtt-users More help : https://help.launchpad.net/ListHelp

