Toyomasa Watarai / Mbed OS Pelion-dm-example-DISCO_L475_IOT

Fork of example-DISCO_L475_IOT-mbed-Cloud-connect by ST

Revision:
6:e0e1e1b93099
Parent:
4:cf7342047b4d
Child:
9:265744785d33
--- a/main.cpp	Fri Jul 06 15:08:07 2018 +0200
+++ b/main.cpp	Tue Jul 10 14:52:15 2018 +0200
@@ -26,12 +26,13 @@
 // This is great because things such as network operations are illegal in ISR, so updating a resource in a button's fall() function is not allowed
 EventQueue eventQueue;
 
+// Declaring net interface as a global variable instead of local to avoid stack overflow
+ISM43362Interface net;
+
 // Storage implementation definition, currently using SDBlockDevice (SPI flash, DataFlash, and internal flash are also available)
 SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS);
 FATFileSystem fs("sd", &sd);
 
-// Declaring net interface as a global variable instead of local to avoid stack overflow
-ISM43362Interface net;
 
 // Declaring pointers for access to Mbed Cloud Client resources outside of main()
 MbedCloudClientResource *button_res;