I'm really new to MQTT protocol and do some tests in ubuntu and openwrt platforms using terminal commands. I have successfully install opensource MQTT broker Mosquitto on openwrt chaos calmer and I now able to publish/subscribe topic using two different terminal windows. Im planning to build a simple GUI application with minimal user interface to publish the MQTT message. I saw that M2Mqtt library for support. But when it comes to the documentation there is no proper guidance for how to connect external MQTT broker.
I followed this document http://www.hivemq.com/blog/mqtt-client-library-encyclopedia-m2mqtt
How can I publish message to MQTT broker hosted externally (in my case virtualbox - on top of openwrt ) with C# ?