Changed callback type.

This commit is contained in:
Tom Cook
2016-01-26 09:50:27 +00:00
parent 0bb4efcea5
commit 21b75a2c4a
2 changed files with 3 additions and 2 deletions

View File

@ -570,7 +570,7 @@ PubSubClient& PubSubClient::setServer(const char * domain, uint16_t port) {
return *this;
}
PubSubClient& PubSubClient::setCallback(void(*callback)(char*,uint8_t*,unsigned int)){
PubSubClient& PubSubClient::setCallback(MQTT_CALLBACK_SIGNATURE) {
this->callback = callback;
return *this;
}