diff --git a/PubSubClient/examples/mqtt_basic/mqtt_basic.pde b/PubSubClient/examples/mqtt_basic/mqtt_basic.pde index 5193ef8..359a267 100644 --- a/PubSubClient/examples/mqtt_basic/mqtt_basic.pde +++ b/PubSubClient/examples/mqtt_basic/mqtt_basic.pde @@ -15,7 +15,7 @@ byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED }; byte server[] = { 172, 16, 0, 2 }; byte ip[] = { 172, 16, 0, 100 }; -void callback(char* topic, byte* payload,int length) { +void callback(char* topic, byte* payload, unsigned int length) { // handle message arrived }