In file included from Adafruit_MQTT/Adafruit_MQTT_SPARK.h:28:0,
from chadmqtt_test.cpp:1:
Adafruit_MQTT/Adafruit_MQTT.h:36:0: warning: "strncpy_P" redefined [enabled by default]
#define strncpy_P(dest, src, len) strncpy((dest), (src), (len))
^
In file included from ../wiring/inc/spark_wiring_arduino.h:35:0,
from ./inc/application.h:92,
from chadmqtt_test.cpp:1:
../wiring/inc/avr/pgmspace.h:70:0: note: this is the location of the previous definition
#define strncpy_P(s1, s2, n) strncpy((s1), (s2), (n))
^
In file included from Adafruit_MQTT/Adafruit_MQTT_SPARK.h:28:0,
from chadmqtt_test.cpp:1:
Adafruit_MQTT/Adafruit_MQTT.h:37:0: warning: "strncasecmp_P" redefined [enabled by default]
#define strncasecmp_P(f1, f2, len) strncasecmp((f1), (f2), (len))
^
In file included from ../wiring/inc/spark_wiring_arduino.h:35:0,
from ./inc/application.h:92,
from chadmqtt_test.cpp:1:
../wiring/inc/avr/pgmspace.h:68:0: note: this is the location of the previous definition
#define strncasecmp_P(s1, s2, n) strncasecmp((s1), (s2), (n))
^
In file included from Adafruit_MQTT/Adafruit_MQTT.cpp:22:0:
Adafruit_MQTT/Adafruit_MQTT.h:36:0: warning: "strncpy_P" redefined [enabled by default]
#define strncpy_P(dest, src, len) strncpy((dest), (src), (len))
^
In file included from ../wiring/inc/spark_wiring_arduino.h:35:0,
from ./inc/application.h:92,
from Adafruit_MQTT/Adafruit_MQTT.h:26,
from Adafruit_MQTT/Adafruit_MQTT.cpp:22:
../wiring/inc/avr/pgmspace.h:70:0: note: this is the location of the previous definition
#define strncpy_P(s1, s2, n) strncpy((s1), (s2), (n))
^
In file included from Adafruit_MQTT/Adafruit_MQTT.cpp:22:0:
Adafruit_MQTT/Adafruit_MQTT.h:37:0: warning: "strncasecmp_P" redefined [enabled by default]
#define strncasecmp_P(f1, f2, len) strncasecmp((f1), (f2), (len))
^
In file included from ../wiring/inc/spark_wiring_arduino.h:35:0,
from ./inc/application.h:92,
from Adafruit_MQTT/Adafruit_MQTT.h:26,
from Adafruit_MQTT/Adafruit_MQTT.cpp:22:
../wiring/inc/avr/pgmspace.h:68:0: note: this is the location of the previous definition
#define strncasecmp_P(s1, s2, n) strncasecmp((s1), (s2), (n))
^
In file included from ./inc/application.h:92:0,
from Adafruit_MQTT/Adafruit_MQTT.h:26,
from Adafruit_MQTT/Adafruit_MQTT.cpp:22:
Adafruit_MQTT/Adafruit_MQTT.cpp: In member function 'const char* Adafruit_MQTT::connectErrorString(int8_t)':
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
''' ^
Adafruit_MQTT/Adafruit_MQTT.cpp:272:22: note: in expansion of macro 'F'
case 1: return F("The Server does not support the level of the MQTT protocol requested");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:273:22: note: in expansion of macro 'F'
case 2: return F("The Client identifier is correct UTF-8 but not allowed by the Server");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:274:22: note: in expansion of macro 'F'
case 3: return F("The MQTT service is unavailable");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:275:22: note: in expansion of macro 'F'
case 4: return F("The data in the user name or password is malformed");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:276:22: note: in expansion of macro 'F'
case 5: return F("Not authorized to connect");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:277:22: note: in expansion of macro 'F'
case 6: return F("Exceeded reconnect rate limit. Please try again later.");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:278:22: note: in expansion of macro 'F'
case 7: return F("You have been banned from connecting. Please contact the MQTT server administrator for more details.");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:279:23: note: in expansion of macro 'F'
case -1: return F("Connection failed");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:280:23: note: in expansion of macro 'F'
case -2: return F("Failed to subscribe");
^
../wiring/inc/spark_wiring_arduino.h:40:62: error: cannot convert 'const __FlashStringHelper*' to 'const char*' in return
#define F(X) (reinterpret_cast<const __FlashStringHelper*>(X))
^
Adafruit_MQTT/Adafruit_MQTT.cpp:282:12: note: in expansion of macro 'F'
return F("Unknown error");
^
Adafruit_MQTT/Adafruit_MQTT.cpp:283:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [../build/target/user/platform-6Adafruit_MQTT/Adafruit_MQTT.o] Error 1
make: *** [user] Error 2
Error: Could not compile. Please review your code.