This tutorial explains how you can send data into the IBM Internet of Things Foundation from Reactive Blocks. The example runs out-of-the-box, but it is easy to adapt it so you can send your own kind of data.
In this tutorial, we connect to the quickstart server of the Internet of Things Foundation. This is a preview version of the actual IOT Foundation service. It does not require authentication or a signup, and displays all data sent in directly on a web site.
Note that the IoT Foundation uses MQTT over ports 1883 or 8883, which must not be blocked by your firewall.
Why IBM Internet of Things Foundation? With the IBM Internet of Things Foundation you can collect event data from devices, forward it to other applications, and retrieve historical data.
Why Reactive Blocks? With Reactive Blocks you can build robust applications from building blocks. The simple example here can for instance be extended, block for block, towards the final application.
How it Works
Find the launch configuration, right-click, and select Run As / IOTFoundationQuickstart
Now the following happens:
A website opens and shows the IBM IOT Foundation Quickstart web site for a new device that the application just created. As our application is not yet sending any data, the website will tell that the device is connected, but that it did not yet receive any data.
If the device application cannot connect, this may be due to a firewall that blocks the MQTT traffic via ports 1883 or 8883.
A window opens that lets you simulate data. Whenever you adjust any of the values, a new data event is sent into quickstart. As soon as you send the first data, the website will show the data.
This is the web site with some data: