Lab exercise code for FAE Summit 09/2019.

Revision:
3:8c7198d1a2a1
Parent:
2:dc95ac6d6d4e
Child:
12:5015dfead3f2
--- a/main.cpp	Fri Mar 09 13:15:17 2018 +0000
+++ b/main.cpp	Sun Mar 11 09:45:20 2018 +0000
@@ -15,6 +15,11 @@
  * limitations under the License.
  */
 #include <stdio.h>
+
+#if MBED_CONF_APP_LORAWAN_ENABLED
+
+#ifdef DEVICE_SPI
+
 #include "lorawan/LoRaWANInterface.h"
 #include "lorawan/system/lorawan_data_structures.h"
 #include "events/EventQueue.h"
@@ -137,8 +142,11 @@
 
     // make your event queue dispatching events forever
     ev_queue.dispatch_forever();
+
+    return 0;
 }
 
+
 /**
  * Sends a message to the Network Server
  */
@@ -251,4 +259,12 @@
     }
 }
 
+#endif //DEVICE_SPI
+
+#else
+int main (void)
+{
+    return 0;
+}
+#endif //MBED_CONF_APP_LORAWAN_ENABLED
 // EOF