DeviceHub Arduino library provides a client for doing publish/subscribe with DeviceHub server.
The library depends on PubSubClient
For install of PubSubClient library for Arduino use this link:
http://knolleary.net/arduino-client-for-mqtt/
For install of DeviceHub library for Arduino, you must copy the DeviceHub directory in Libraries of Arduino.
In order to test this library you have 2 files in examples directory of DeviceHub library.