Skip to content

Commit

Permalink
Made use of std::function ESP8266-specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Cook committed Jan 27, 2016
1 parent 21b75a2 commit 98a9c29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PubSubClient.h
Expand Up @@ -66,7 +66,11 @@
#define MQTTQOS1 (1 << 1)
#define MQTTQOS2 (2 << 1)

#ifdef ESP8266
#define MQTT_CALLBACK_SIGNATURE std::function<void(char*, uint8_t*, uint32_t)> callback
#else
#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, uint32_t)
#endif

class PubSubClient {
private:
Expand Down

0 comments on commit 98a9c29

Please sign in to comment.