Revert breaking change to callback signature
This commit is contained in:
parent
4739ca0802
commit
341661671b
@ -6,7 +6,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/knolleary/pubsubclient.git"
|
"url": "https://github.com/knolleary/pubsubclient.git"
|
||||||
},
|
},
|
||||||
"version": "2.5",
|
"version": "2.6",
|
||||||
"exclude": "tests",
|
"exclude": "tests",
|
||||||
"examples": "examples/*/*.ino",
|
"examples": "examples/*/*.ino",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=PubSubClient
|
name=PubSubClient
|
||||||
version=2.5
|
version=2.6
|
||||||
author=Nick O'Leary <nick.oleary@gmail.com>
|
author=Nick O'Leary <nick.oleary@gmail.com>
|
||||||
maintainer=Nick O'Leary <nick.oleary@gmail.com>
|
maintainer=Nick O'Leary <nick.oleary@gmail.com>
|
||||||
sentence=A client library for MQTT messaging.
|
sentence=A client library for MQTT messaging.
|
||||||
|
@ -75,9 +75,9 @@
|
|||||||
|
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, uint32_t)> callback
|
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, unsigned int)> callback
|
||||||
#else
|
#else
|
||||||
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, uint32_t)
|
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, unsigned int)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class PubSubClient {
|
class PubSubClient {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user