Skip to content

Jeffin28/IBM-WATSON-ESP8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBM-WATSON-ESP8266

Interfacing with ESP8266

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.

I have used the device side method from the given archiecture of IBM WATSON communication

Steps :

  1. Download the repo.
  2. For those who have already created a ibm watson console Click here For ibm login.
  3. 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 👍.
  4. Open LIB folder then place the ArduinoJson(5.13.5) and PubSubClient(2.7.0) folders into your arduino local dierectory folder (libraries) from the downloaded repo.
  5. After the console creation and library allocation move on for source code side.It can be found in CODE folder.
  6. 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:

in ibm.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:

  • After the prescribed changes from step 6,compile the code.
  • Next upload the code with Arduino IDE and restart the module once again after uploading completed.
  • I have tested in esp8266 core version 2.4.2.
  • For doing publish and subscriberefer the last page of IBM_WATSON.pdf documentation and enjoy 😃 !!.
  • Output debug can be seen in serial monitor with 9600baudrate [refer the document]:
  • for publish :

    for subscribe :