Closed Opiron closed 1 year ago
Did anyone else had this issue?
Same issue. Any solution?
@BirBDey @PM-o-428 @Opiron Are you all running the Arduino Uno WiFi Rev2?
@brentru No. I am using ESP32 Devkit V4 on platform IO with Arduino Framework. Issue fixed after removing all "F"s after the return.
This issue should be fixed in the latest release.
Please upgrade to Adafruit IO Arduino version 4.2.5 (https://github.com/adafruit/Adafruit_IO_Arduino/releases/tag/4.2.5) and also upgrade Adafruit MQTT library to the latest version.
Hello Adafruit, I have an Arduino Uno Wifi Rev.2 and I am trying to use your MQTT Library for posting data to Adafruit IO. Library version is 1.3.0. Problems I have when I try to compile:
Arduino:1.8.13 (Windows 10), Tarjeta:"Arduino Uno WiFi Rev2, None (ATMEGA4809)"
In file included from C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.h:25:0,
from C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:22:
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp: In member function 'const arduino::__FlashStringHelper* Adafruit_MQTT::connectErrorString(int8_t)':
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:278:12: note: in expansion of macro 'F'
return F(
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:281:12: note: in expansion of macro 'F'
return F(
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:284:12: note: in expansion of macro 'F'
return F("The MQTT service is unavailable");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:286:12: note: in expansion of macro 'F'
return F("The data in the user name or password is malformed");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:288:12: note: in expansion of macro 'F'
return F("Not authorized to connect");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:290:12: note: in expansion of macro 'F'
return F("Exceeded reconnect rate limit. Please try again later.");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:292:12: note: in expansion of macro 'F'
return F("You have been banned from connecting. Please contact the MQTT "
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:295:12: note: in expansion of macro 'F'
return F("Connection failed");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:297:12: note: in expansion of macro 'F'
return F("Failed to subscribe");
^
C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino/Arduino.h:30:20: error: cannot convert 'const char' to 'const arduino::__FlashStringHelper' in return
define F(str) (str)
^
C:\Users\xxx\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp:299:12: note: in expansion of macro 'F'
return F("Unknown error");
^
exit status 1
Error compilando para la tarjeta Arduino Uno WiFi Rev2.