Program to connect the F411 Nucleo board to the internet via Multitech Systems Wifly, and reads Grove Temp Sensor values and reports data to the AT&T M2X cloud stream
Dependencies: M2XStreamClient SocketModem jsonlite mbed
Fork of STM32_MTS_Wifi_Connect_M2X by
Diff: main.cpp
- Revision:
- 5:19044863e45c
- Parent:
- 4:6daf448c5b1c
- Child:
- 6:7c2bdcf9d302
--- a/main.cpp Sat Jan 04 06:02:38 2014 +0000 +++ b/main.cpp Sat Jan 04 20:29:00 2014 +0000 @@ -3,10 +3,17 @@ #include "Wifi.h" using namespace mts; +/* This example shows how to do a basic connectivity test using +* the MTS Wifi shield board. You will need to change the network +* SSID and security key, unless you are at the 2014 AT&T hackathon +* where you can use the defaults below. +*/ + int main() { + //Set the network parameters std::string ssid = "belkin54g"; - std::string securityKey = ""; + std::string securityKey = "hackathon"; Wifi::SecurityType securityType = Wifi::NONE; //Wait for wifi module to boot up