Publish to IBM Bluemix from Arduino using Intel Edison

Here is how to publish data to IBM Bluemix from your Intel Edison or other Wi-Fi enabled Arduino device. Making this work first requires that you import and add the PubSub library for Arduino (generally by copying the .h and .cpp (and examples) folder into your Arduino Libraries folder and restarting your environment. This was written using this guide from IBM (there is more comprehensive source linked way down at the very bottom as a .ino file).

Get the file here on Gist.