From cc7e1c45c7401f5c9f892c76e837c176e19f37cb Mon Sep 17 00:00:00 2001 From: dpslwk Date: Tue, 13 Mar 2012 18:29:43 +0000 Subject: [PATCH] Update example to be 1.8 compatible --- PubSubClient/examples/mqtt_basic/mqtt_basic.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }