ModeDevice library for CC3200 LaunchPad on Energia
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7d70acc May 25, 2016

Mode Device SDK for CC3200 LaunchPad on Energia

See the first setup for CC3200 LaunchPad.

How to install

unzip file under your Energia Skeckbook location/library. For more detail, read the guide.

To run the demo program, please open examples/ModeDeviceDemo_raw.ino file on Energia.

  • Change your network SSID and password.
  • Change Mode Device API key and device ID.

Run the demo program and see Serial console. You will see the following message.

Attempting to connect to Network named: .
You're connected to the network
Waiting for an ip address
Got IP Address:
Sent event
Going to busy loop() and waiting for commands...

File structures


  • LICENSES Please read the file.

Main driver files

  • ModeDevice.cpp
  • ModeDevice.h

We will keep the class name ModeDevice and public method definition as much as possible. Private methods, properties and other logic may vary in the future.


  • /examples

Under the folder, you can find demo example to use Mode Cloud.

SSL cert register for Mode.

  • ModeWiFiClient.cpp
  • ModeWiFiClient.h

The current WiFiClient class in Energia doesn't support SSL and we want to control root CA cert. That's why we require to access to properties in WiFiClass. Once Energia WiFiClient class supports SSL officially, ModeWiFiClient class will be gone.

HTTP client lib

  • HttpClient.cpp
  • HttpClient.h

Thanks to Aurduio HttpClient project. We forked it and tweaked a bit to support SSL. This will be deprecated.


  • SimpleLog.h

If you want to get more logging information, define DUMP_DEBUG_LOG.

WebSocket lib

  • Base64.cpp
  • Base64.h
  • WebSocketClient.cpp
  • WebSocketClient.h
  • global.h
  • sha1.cpp
  • sha1.h

Thanks to Aurduio WebSocket project. We forked it and tweaked a bit to support SSL and Authentication header. This will be deprecated.