NOTE: Since this article was written, ThingStudio has gone to all JSON payloads for MQTT message.
This mean that the original delimiter for messages to and from the Arduino, which was a colon character, could not longer be used as it conflicts with JSON. We’ve changed the serial bridge to use the pipe symbol. Now read on…..
If you would like to try out ThingStudio, and don’t own the requisite networking hardware, but do have a standard Arduino Uno or other device with just a serial connection, do not despair! We have created a useful program which will get your ‘duino running with ThingStudio in no time.
The DesktopMQTT is a simple to install Macintosh application that provides two, independent, functions. First, it gives you your own, local, MQTT broker. Second, it provides a bridge between the serial connection you have to your Arduino (or indeed, anything else with a serial connection), and your MQTT broker, and thus, to ThingStudio. Today we’re just going to use both of those functions. Tip: For a quick backgrounder on MQTT you can look here. For a more permanent MQTT broker which works on Raspberry Pi and other small platforms, checkout mosquitto.org, and use the latest one.
Right, let’s get started.