You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-27 15:01:49 +03:00
fix return type for esp bsp 2.0.8
This commit is contained in:
@ -166,11 +166,19 @@ public:
|
||||
int8_t connect();
|
||||
int8_t connect(const char *user, const char *pass);
|
||||
|
||||
// Return a printable string version of the error code returned by
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
// Returns a printable string version of the error code returned by
|
||||
// connect(). Preprocessor due to breaking change within
|
||||
// Arduino ESP32 BSP v2.0.8
|
||||
// see: https://github.com/espressif/arduino-esp32/pull/7941
|
||||
const char *connectErrorString(int8_t code);
|
||||
#else
|
||||
// Returns a printable string version of the error code returned by
|
||||
// connect(). This returns a __FlashStringHelper*, which points to a
|
||||
// string stored in flash, but can be directly passed to e.g.
|
||||
// Serial.println without any further processing.
|
||||
const __FlashStringHelper *connectErrorString(int8_t code);
|
||||
#endif;
|
||||
|
||||
// Sends MQTT disconnect packet and calls disconnectServer()
|
||||
bool disconnect();
|
||||
|
Reference in New Issue
Block a user