Generic example for any board with IDMW0xM1 shield

Revision:
19:5dd1ec7fdf0d
Parent:
18:04813dfab243
Child:
20:63be9b2e5c9f
--- a/main.cpp	Tue Feb 20 15:09:08 2018 +0100
+++ b/main.cpp	Wed Feb 21 14:37:02 2018 +0100
@@ -33,6 +33,13 @@
 DigitalOut  led(LED_RED, LED_OFF);
 InterruptIn button(BUTTON1);
 
+//    EthernetInterface net;
+SpwfSAInterface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX);
+#if 0 // betzw
+SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS);
+FATFileSystem fs("sd");
+#endif
+
 // Pointers to the resources that will be created in main_application().
 static MbedCloudClientResource* pattern_ptr;
 
@@ -132,13 +139,6 @@
     // Misc OS setup
     srand(time(NULL));
 
-//    EthernetInterface net;
-    SpwfSAInterface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX);
-#if 0 // betzw
-    SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS);
-    FATFileSystem fs("sd");
-#endif
-
     printf("Start Simple Mbed Cloud Client\n");
 
     // Initialize button interrupt