Skeleton program for Federico's 4YP project.
Dependencies: WebSocketClient WiflyInterface mbed messages
Fork of IoT_Ex by
Diff: source/globals.cpp
- Revision:
- 8:5afd599875e4
- Parent:
- 7:bd21c60b5dd2
- Child:
- 10:e8b66718a103
--- a/source/globals.cpp Thu Oct 06 08:05:21 2016 +0000 +++ b/source/globals.cpp Thu Nov 24 16:54:56 2016 +0000 @@ -44,18 +44,18 @@ Serial pc(USBTX, USBRX); InterruptIn UIBut1(USER_BUTTON); Timer DisplayTimer; -DigitalOut Led(LED1); +DigitalOut Led(D5); // Global variable declarations: int ReconnectAttempts = 0; int SendCounter = 0; extern int IoT_ID = 0; float TempSensor = 0.0f; -char* wifissid = "MyHomeNetwork"; -char* wifipassword = "MyHomeNetworkPassword"; +char* wifissid = "SC"; +char* wifipassword = "smartcellshield"; // Wifily interface declaration: -WiflyInterface eth(D8, D2, D6, D5, wifissid, wifipassword, WPA2); +WiflyInterface eth(D8, D2, D6, LED1, wifissid, wifipassword, WPA2); // WebSocket declaration: Websocket ws;