Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Projet_de_bachelor_code Projet_de_bachelor_code
Diff: main.cpp
- 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