Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc. http://www.blynk.cc/

Dependents:   Blynk_RBL_BLE_Nano Blynk_MicroBit Blynk_Serial Blynk_RBL_BLE_Nano

Revision:
16:6d9bf99b263c
Parent:
15:975b60f7a8ff
Child:
21:fd9a3d7ddadb
diff -r 975b60f7a8ff -r 6d9bf99b263c Blynk/BlynkDetectDevice.h
--- a/Blynk/BlynkDetectDevice.h	Mon Nov 27 19:48:07 2017 +0200
+++ b/Blynk/BlynkDetectDevice.h	Mon Nov 27 23:01:23 2017 +0200
@@ -25,6 +25,7 @@
 #define BLYNK_NORETURN __attribute__ ((noreturn))
 #define BLYNK_UNUSED __attribute__((__unused__))
 #define BLYNK_DEPRECATED __attribute__ ((deprecated))
+#define BLYNK_CONSTRUCTOR __attribute__((constructor))
 
 // Causes problems on some platforms
 #define BLYNK_FORCE_INLINE inline //__attribute__((always_inline))
@@ -147,7 +148,7 @@
         #define BLYNK_INFO_DEVICE  "Particle"
         #endif
 
-    #elif defined(MBED_LIBRARY_VERSION)
+    #elif defined(__MBED__)
 
         #define BLYNK_INFO_DEVICE  "MBED"
         #define BLYNK_USE_128_VPINS