See the first setup for CC3200 LaunchPad.
unzip ModeDeviceCC3200.zip
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: 10.1.10.106
Sent event
Going to busy loop() and waiting for commands...
- LICENSES Please read the file.
- 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.
- 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.
- 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.
- 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.