IoT - r41d/ClusterDuck-Protocol GitHub Wiki
Setting up the IBM Watson IoT Platform
In order for the PapaDuck to communicate with the internet, you need to create a device in the IBM Watson IoT Platform. Creating a device allows you to connect your an IoT device (in this case, the PapaDuck) to IBM Watson. You are telling IBM Watson to let the device connect to the internet and receive its data.
Follow these steps to connect a device to IBM Watson IoT Platform
-
Create an IBM Cloud account through this link. Fill out all the required information and confirm your email address.
-
Follow this link to provision an instance of the IBM Watson IoT Platform. Note: you can also find this by browsing through the catalog.
-
Make sure the Lite plan is selected and click
Create
. You can change theService Name
if you want to, but it's not required. -
After the service provisions, click
Launch
. -
Click
Add Device
. -
Enter your
Device Type
andDevice ID
, then clickNext
. -
Filling out anything in the
Device Information
tab is optional, clickNext
. -
Leave the field for
Authentication Token
blank, as one will be generated automatically. You can specify your own if you prefer. ClickNext
. -
Ensure that the
Summary
page looks good, then clickFinish
. -
You'll see the authentication token listed, ensure that you do not misplace it, otherwise, you will have to regenerate a new token.
-
Open
PapaDuckExample.ino
and replaceORG
,DEVICE_ID
,DEVICE_TYPE
, andTOKEN
with the information from the summary screen. Make sure you also have the correct WiFi SSID and password filled out in that file as well. After you flash the duck with this information, you'll see data flowing through the IBM Watson IoT Platform.