Skip to content

Commit 3416616

Browse files
committed
Revert breaking change to callback signature
1 parent 4739ca0 commit 3416616

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "git",
77
"url": "https://github.com/knolleary/pubsubclient.git"
88
},
9-
"version": "2.5",
9+
"version": "2.6",
1010
"exclude": "tests",
1111
"examples": "examples/*/*.ino",
1212
"frameworks": "arduino",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=PubSubClient
2-
version=2.5
2+
version=2.6
33
author=Nick O'Leary <nick.oleary@gmail.com>
44
maintainer=Nick O'Leary <nick.oleary@gmail.com>
55
sentence=A client library for MQTT messaging.

src/PubSubClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575

7676
#ifdef ESP8266
7777
#include <functional>
78-
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, uint32_t)> callback
78+
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, unsigned int)> callback
7979
#else
80-
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, uint32_t)
80+
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, unsigned int)
8181
#endif
8282

8383
class PubSubClient {

0 commit comments

Comments
 (0)