User manual

www.ti.com
Software Examples
3.2.3 Overview of Backend Servers
Figure 14. Backend Block Diagram of CC3100BOOST MQTT-Twitter LED Control Demo
As shown in the above Figure 14, inputs from either the MSP432 LaunchPad or Twitter travel through a
couple of intermediary servers before reaching the output on the opposite end. Instead of interacting with
Twitter server directly through the more resource intensive HTTP, the MSP432 LaunchPad communicates
with the cloud solely through MQTT protocol. MQTT is a publish-subscribe messaging protocol designed
for lightweight M2M communications. Multiple clients sends message to one another through a server
known as a broker, and each client can publish messages to different topics and subscribe to multiple
topics. While a dedicated MQTT broker can be setup for an application, this demo uses one of the several
MQTT brokers that are freely available to the public, http://iot.eclipse.org/sandbox.html.
Every LaunchPad running the CC3100BOOST MQTT-Twitter LED Control demo subscribes to the MQTT
topic, “/msp/cc3100/demo”. This is why any RGB data published to this topic will change the LED color on
all LaunchPads running this demo. However, each LaunchPad also subscribes to an “<uniqueID>” topic
that can be used to control LaunchPads individually.
A cloud server is also setup/maintained by the MSP Team using the IBM Bluemix cloud platform service.
This server runs a couple of Node-RED applications that interface with Twitter directly through HTTP.
After processing public tweets containing #MSP432LaunchPad, the Node-RED server also act as a MQTT
client, publishing color information to either the “/msp/cc3100/demo” or “<uniqueID>” topic, which then
gets received on subscribed LaunchPads. Conversely, unique id data published by the LaunchPads to the
“/msp/cc3100/demo/fromLP” topic gets received by the Node-RED server, which then tweets a time
stamped message on the Twitter account @MSPLaunchPad.
Check out IBM Bluemix to see how you can also build your own cloud application.
3.2.4 Developing With CC3100BOOST BoosterPack
A SimpleLink Wi-Fi CC3100 Software Development Kit (SDK) can be downloaded at
http://www.ti.com/tool/cc3100sdk. It contains drivers, many sample applications for Wi-Fi features and
internet, and documentation needed to use the CC3100 Internet-on-a-chip™ solution.
The CC3100BOOST MQTT-Twitter LED Control Demo was developed on CC3100SDK_1.0.0. Service
pack update may be required on the CC3100BOOST with newer SDK release. Refer to the CC3100
SimpleLink Wi-Fi and IoT Solution Getting Started Guide for more information.
21
SLAU597March 2015 MSP
EXP432P401R LaunchPad™ Evaluation Kit
Submit Documentation Feedback
Copyright © 2015, Texas Instruments Incorporated