Overview

Skill Level: Any Skill Level

PrepareGet your device ready:Download and install the latest version of Energia Platform http://energia.nu/download/ which is available for Windows, Mac and Linux.Open the Energia IDE and select the following: LaunchPad w/ msp430f5529 (25 MHz) in the Tools/Board menu. Appropriate port under Tools/Serial Port menu. The Paho MQTT Embedded C/C++ Client https://eclipse.org/paho/clients/c/embedded/ has been pre-integrated into the […]

Ingredients

MSP5529 CC31001 Energia with MSP430F5529 LaunchPad + SimpleLink™ Wi Fi® CC3100 BoosterPack

 

MSP430F5529 LaunchPad
(http://www.ti.com/tool/msp-exp430f5529lp)

SimpleLink™ Wi-Fi® CC3100 BoosterPack
(http://www.ti.com/tool/cc3100boost)
 
Energia is a Rapid Prototyping Environment based on the Wiring/Arduino Frameworks modified to support Texas Instruments Embedded Processors.

Step-by-step

  1. Prepare

    Get your device ready:

    Download and install the latest version of Energia Platform http://energia.nu/download/ which is available for Windows, Mac and Linux.

    Open the Energia IDE and select the following:

    LaunchPad w/ msp430f5529 (25 MHz) in the Tools/Board menu.

    Appropriate port under Tools/Serial Port menu.

    The Paho MQTT Embedded C/C++ Client https://eclipse.org/paho/clients/c/embedded/ has been pre-integrated into the Energia examples, making it extremely easy to connect to the IBM Internet of Things Platform Services.

  2. Connect (Quickstart)

    Internet of Things Platform Quickstart connection:

    Open File/Examples/MQTTClient/QuickstartWifi.

    Update the example source code to specify the desired WiFi SSID/Password to be used.

    Verify/Compile the example.

    Choose Upload and then Open Serial Monitor.

    The application will connect to the IBM quickstart service and start sending data periodically.

  3. Visualize

    Click on the link shown on the UART console to redirect to the IBM IoT Platform Visualiser.

    Alternatively, you can view the data from your device at the following URL https://quickstart.internetofthings.ibmcloud.com/#/

    Enter the ID (a twelve character string) and select to visualize your data.

    The ID can be found by scrolling down on the LCD screen using the joystick button on the board.

  4. Register your Device In Watson IoT Platform

    To explore and make use of full capabilities of Watson IoT Platform, we need to setup and register your device(s) in it. This section shows how you can setup the same.

    Carry out the steps present in this recipe to register your device(s) in IBM Watson Internet of Things Platform.

    At this step, we have successfully created the Watson IoT service and registered your device(s) in it.

  5. Connect (Registered)

    IBM Watson IoT Platform Registered connection

    1. Once you have access to an IBM Watson IoT Platform organization through Bluemix or the Marketplace, you can click to ‘Add a new device’ on the IoT organization dashboard.
    2. During the device registration process you will get device properties, copy these when you get them. They will look like this:
       org=xyzzyz

      type=iotsample-ti-energia

      id=01c7ca014599

      auth-method=token

      auth-token=ijeifwiefiweff@
    3. Open File/Examples/MQTTClient/RegisteredWifi
    4. Update the example source code to specify the desired WiFi SSID/Password to be used.
    5. Update the example source code to add the registered organisation and auth-token.
    6. Verify/Compile the example
    7. Choose Upload and then Open Serial Monitor
    8. The application will connect to the IBM registered service and start sending data periodically

Join The Discussion