IBM WATSON iot platform is cloud-hosted service that is designed to simplify and derive the value from your IoT devices. Using their device management service, we can perform device actions like rebooting or updating firmware, receive device diagnostics and metadata, or perform bulk device addition and removal. They use an industry-standard MQTT protocol. First of all, we need to have an iot console for the communication with ESP8266.If you don't have an account please refer the documentation in DOC folder.
- Download the repo.
- For those who have already created a
ibm watson
console Click here For ibm login. - For those who doesn't have ibm console 😇 open the DOC folder for ibm console creation and read the document IBM_WATSON.pdf carefully and do it 👍.
- Open LIB folder then place the
ArduinoJson
(5.13.5) andPubSubClient
(2.7.0) folders into your arduino local dierectory folder (libraries
) from the downloaded repo. - After the console creation and library allocation move on for source code side.It can be found in CODE folder.
- We need to change credentials in global.h and ibm.cpp before the code simulation so open the
CODE
folder
in global.h
:
Provide your ssid and password of WIFI router here:
inibm.cpp
:
Please enter Organization ID (Bluemix ID), Device type and ID, Authentication token here from step 8.Don’t change any other options below it:
2.4.2
.publish
and subscribe
refer the last page of IBM_WATSON.pdf documentation and enjoy 😃 !!.9600
baudrate [refer the document]:for publish
:
subscribe
: