mbed-os-examples / Mbed OS mbed-os-example-client

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Jan 16 13:30:06 2018 +0000
Parent:
127:00892b957d1c
Child:
129:d145697eb0de
Commit message:
Merge pull request #374 from ARMmbed/IOTCLT-2328

IOTCLT-2328: Fix include ordering
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jan 16 09:00:07 2018 +0000
+++ b/main.cpp	Tue Jan 16 13:30:06 2018 +0000
@@ -15,7 +15,6 @@
  */
 #define __STDC_FORMAT_MACROS
 #include <inttypes.h>
-#include "simpleclient.h"
 #include <string>
 #include <sstream>
 #include <vector>
@@ -31,6 +30,9 @@
 #define MBED_CONF_APP_ESP8266_RX MBED_CONF_APP_WIFI_RX
 #include "easy-connect/easy-connect.h"
 
+// Should be defined after easy-connect.h
+#include "simpleclient.h"
+
 #ifdef TARGET_STM
 #define RED_LED (LED3)
 #define GREEN_LED (LED1)