Skip to content

Commit

Permalink
receive self published messages
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed May 3, 2017
1 parent 42853d2 commit c437be1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/AdafruitHuzzahESP8266/AdafruitHuzzahESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ArduinoEthernetShield/ArduinoEthernetShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ArduinoWiFi101/ArduinoWiFi101.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ArduinoWiFi101_SSL/ArduinoWiFi101_SSL.ino
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ArduinoWiFiShield/ArduinoWiFiShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ArduinoYun_MQTTClient/ArduinoYun_MQTTClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/ESP32DevelopmentBoard/ESP32DevelopmentBoard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void connect() {

Serial.println("\nconnected!");

client.subscribe("/example");
// client.unsubscribe("/example");
client.subscribe("/hello");
// client.unsubscribe("/hello");
}

void loop() {
Expand Down

0 comments on commit c437be1

Please sign in to comment.