Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Apr 29, 2017
1 parent f3227f6 commit daf7062
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void setup() {
Bridge.begin();
Serial.begin(9600);
client.begin("broker.shiftr.io", net);
client.onMessage(messageReceived);

connect();
}
Expand Down Expand Up @@ -80,7 +81,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
2 changes: 1 addition & 1 deletion examples/AdafruitHuzzahESP8266/AdafruitHuzzahESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
2 changes: 1 addition & 1 deletion examples/ArduinoWiFi101/ArduinoWiFi101.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
2 changes: 1 addition & 1 deletion examples/ArduinoWiFi101_SSL/ArduinoWiFi101_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
2 changes: 1 addition & 1 deletion examples/ArduinoWiFiShield/ArduinoWiFiShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
2 changes: 1 addition & 1 deletion examples/ESP32DevelopmentBoard/ESP32DevelopmentBoard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loop() {
}
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
void messageReceived(String topic, String payload, char bytes[], unsigned int length) {
Serial.print("incoming: ");
Serial.print(topic);
Serial.print(" - ");
Expand Down

0 comments on commit daf7062

Please sign in to comment.