Skip to content

Commit

Permalink
Merge pull request #336 from jaecktec/master
Browse files Browse the repository at this point in the history
Enable ESP32 to use PubSubClient (make MQTT_CALLBACK_SIGNATURE functional)
  • Loading branch information
knolleary authored Nov 2, 2018
2 parents b381728 + fa3c436 commit a29d0c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/PubSubClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
// Maximum size of fixed header and variable length size header
#define MQTT_MAX_HEADER_SIZE 5

#ifdef ESP8266
#if defined(ESP8266) || defined(ESP32)
#include <functional>
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, unsigned int)> callback
#else
Expand Down

0 comments on commit a29d0c3

Please sign in to comment.