Revert breaking change to callback signature

This commit is contained in:
Nick O'Leary 2016-02-02 07:40:48 +00:00
parent 4739ca0802
commit 341661671b
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/knolleary/pubsubclient.git"
},
"version": "2.5",
"version": "2.6",
"exclude": "tests",
"examples": "examples/*/*.ino",
"frameworks": "arduino",

View File

@ -1,5 +1,5 @@
name=PubSubClient
version=2.5
version=2.6
author=Nick O'Leary <nick.oleary@gmail.com>
maintainer=Nick O'Leary <nick.oleary@gmail.com>
sentence=A client library for MQTT messaging.

View File

@ -75,9 +75,9 @@
#ifdef ESP8266
#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
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, uint32_t)
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, unsigned int)
#endif
class PubSubClient {