1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-04-21 14:45:59 +03:00

Revert "Fix connectErrorString return type for ESP-32 BSP 2.0.8"

This commit is contained in:
Brent Rubell 2023-05-04 14:26:19 -04:00 committed by GitHub
parent 431f70f983
commit e9a6c12184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 14 deletions

View File

@ -327,11 +327,7 @@ uint16_t Adafruit_MQTT::readFullPacket(uint8_t *buffer, uint16_t maxsize,
return ((pbuff - buffer) + rlen);
}
#ifdef ARDUINO_ARCH_ESP32
const char *Adafruit_MQTT::connectErrorString(int8_t code) {
#else
const __FlashStringHelper *Adafruit_MQTT::connectErrorString(int8_t code) {
#endif
switch (code) {
case 1:
return F(

View File

@ -166,19 +166,11 @@ public:
int8_t connect();
int8_t connect(const char *user, const char *pass);
#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
// Return 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();

View File

@ -1,5 +1,5 @@
name=Adafruit MQTT Library
version=2.5.3
version=2.5.2
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=MQTT library that supports the FONA, ESP8266, ESP32, Yun, and generic Arduino Client hardware.