File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
name =Adafruit IO Arduino
2
- version =4.2.3
2
+ version =4.2.4
3
3
author =Adafruit
4
4
maintainer =Adafruit <
[email protected] >
5
5
sentence =Arduino library to access Adafruit IO.
Original file line number Diff line number Diff line change @@ -243,6 +243,18 @@ AdafruitIO_Dashboard *AdafruitIO::dashboard(const char *name) {
243
243
return new AdafruitIO_Dashboard (this , name);
244
244
}
245
245
246
+ // due to breaking change within Arduino ESP32 BSP v2.0.8
247
+ // see: https://github.com/espressif/arduino-esp32/pull/7941
248
+ #ifdef ARDUINO_ARCH_ESP32
249
+ /* *************************************************************************/
250
+ /* !
251
+ @brief Provide status explanation strings.
252
+ @return A pointer to the status string literal, _status. _status is
253
+ the AIO status value
254
+ */
255
+ /* *************************************************************************/
256
+ const char *AdafruitIO::statusText () {
257
+ #else
246
258
/* *************************************************************************/
247
259
/* !
248
260
@brief Provide status explanation strings.
@@ -251,6 +263,7 @@ AdafruitIO_Dashboard *AdafruitIO::dashboard(const char *name) {
251
263
*/
252
264
/* *************************************************************************/
253
265
const __FlashStringHelper *AdafruitIO::statusText () {
266
+ #endif
254
267
switch (_status) {
255
268
256
269
// CONNECTING
Original file line number Diff line number Diff line change @@ -87,7 +87,13 @@ class AdafruitIO {
87
87
AdafruitIO_Dashboard *dashboard (const char *name);
88
88
AdafruitIO_Time *time (aio_time_format_t format);
89
89
90
+ // due to breaking change within Arduino ESP32 BSP v2.0.8
91
+ // see: https://github.com/espressif/arduino-esp32/pull/7941
92
+ #ifdef ARDUINO_ARCH_ESP32
93
+ const char *statusText ();
94
+ #else
90
95
const __FlashStringHelper *statusText ();
96
+ #endif
91
97
92
98
aio_status_t status ();
93
99
/* *******************************************************************/
You can’t perform that action at this time.
0 commit comments