From 49f307506b98f2cb4712694c34a070cdafcfda66 Mon Sep 17 00:00:00 2001 From: constantin Date: Mon, 18 Sep 2017 19:27:44 +0200 Subject: [PATCH 1/2] Add ESP32 callback signature to be functional like ESP8266 --- src/PubSubClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PubSubClient.h b/src/PubSubClient.h index be4bd674..13ab692b 100755 --- a/src/PubSubClient.h +++ b/src/PubSubClient.h @@ -73,7 +73,7 @@ #define MQTTQOS1 (1 << 1) #define MQTTQOS2 (2 << 1) -#ifdef ESP8266 +#if defined(ESP8266) || defined(ESP32) #include #define MQTT_CALLBACK_SIGNATURE std::function callback #else From 8498284792ed3a734097b650d064507ccd6efa29 Mon Sep 17 00:00:00 2001 From: constantin Date: Tue, 19 Sep 2017 18:10:09 +0200 Subject: [PATCH 2/2] Add ESP32 to documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 83176919..baa58d6c 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ boards and shields, including: - TI CC3000 WiFi - [library](https://github.com/sparkfun/SFE_CC3000_Library) - Intel Galileo/Edison - ESP8266 + - ESP32 The library cannot currently be used with hardware based on the ENC28J60 chip – such as the Nanode or the Nuelectronics Ethernet Shield. For those, there is an