Template coding for ST IoT Challenge 2019

Dependencies:   Cayenne-MQTT-mbed mbed X_NUCLEO_IKS01A2 X_NUCLEO_IDW01M1v2 NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
stiotchallenge
Date:
Tue Mar 12 03:46:52 2019 +0000
Parent:
21:101560c87a89
Commit message:
Coding template for STIoTChallenge2019

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Mar 06 17:24:15 2019 +0000
+++ b/main.cpp	Tue Mar 12 03:46:52 2019 +0000
@@ -17,8 +17,8 @@
 static LSM303AGRAccSensor *accelerometer = mems_expansion_board->accelerometer;
 
 // WiFi network info.
-char* ssid = "ssid_wifi";
-char* wifiPassword = "wifi_password";
+char* ssid = "iPhone";
+char* wifiPassword = "abcd1234";
 
 // Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
 char* username = "4f3fbcb0-3796-11e9-ad96-c15442ccb423";
@@ -33,6 +33,7 @@
 /* External sensor and output/actuators declared here      */
 /***********************************************************/
 DigitalOut led1(LED1);
+//DigitalOut ledy(D1);
 
 /* Helper function for printing floats & doubles */
 static char *print_double(char* str, double v, int decimalDigits=2)
@@ -216,6 +217,7 @@
         MQTTTimer timer(5000);
 
         while (true) {
+                       
             // Yield to allow MQTT message processing.
             mqttClient.yield(1000);