In order to connect your “Things” to IBM Bluemix you first need to set up an Internet of Things Service in Bluemix. Once you have done this then you can add as many “things”/devices as you want to the IoT Service. Note you only need one IoT Service.
If using a Mac do not use Safari, use Chrome instead as Bluemix uses a floating window with the next button floating off in the lower right hand corner to input the settings. Safari unfortunately does not show the next button.
Creating the Internet of Things Service
Log in to your IBM Bluemix Dashboard
- Click Create Service
- In the LHS Menu select the Internet of Things
- Then click on Internet of things foundation
- Then click Create
Be patient while the service is created. Once the service is created you can add devices to the service.
Adding a device
Open the Internet of Things Service by clicking on its icon if it is not already open. This will bring up the IoT Service landing page.
Under the Connect your devices section click Launch Dashboard
At the top you will now see you IoT Organization ID: e.g. “ffxtt6” This will be needed to connect your devices
To add a new device:
- Click Add a Device
- As you are yet to create a device type you will need to select Create Device Type
- Then select Create Device Type
Give the device type a name e.g. ESP8266 for the NodeMCU or CC3200 for the TI Wifi SOC and click next.
Define template screen now appears you can add information here if you like. However we will leave as is. Click Next Twice to skip over further optional additional information. Also no need to add MetaData. Finally click Create
This will bring you to the Add Device Screen choose your newly created device type ESP8266 and click Next
For the Device ID you could use anything however it is best to use the Device MAC address as this should be unique. If you run the code examples with the device attached to a serial console then the MAC address is displayed.
- Enter the MAC address and click Next
- Ignore metadata. Click Next
- We will use the auto generated token. Click Add
The Device details and credentials are then displayed. YOU NEED TO COPY AND SAVE THESE as the Authentication token cannot be recovered after this stage.
This information should then be entered into the correct places in the Arduino application that runs on your device. e.g. ESP8266 or CC3200.