Skip to content

Commit

Permalink
use new public shiftr.io instance in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Jan 6, 2021
1 parent 500b6d5 commit cdef7fd
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Other shields and boards should also work if they provide a [Client](https://www

## Example

The following example uses an Arduino MKR1000 to connect to shiftr.io. You can check on your device after a successful connection here: https://shiftr.io/try.
The following example uses an Arduino MKR1000 to connect to the public shiftr.io instance. You can check on your device after a successful connection here: https://www.shiftr.io/try.

```c++
#include <SPI.h>
Expand All @@ -58,7 +58,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -84,7 +84,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/AdafruitHuzzahESP8266/AdafruitHuzzahESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -26,7 +26,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -52,7 +52,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand Down Expand Up @@ -31,7 +31,7 @@ void connect() {
net.setInsecure();

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand Down Expand Up @@ -59,7 +59,7 @@ void setup() {
// by Arduino. You need to set the IP address directly.
//
// MQTT brokers usually use port 8883 for secure connections.
client.begin("broker.shiftr.io", 8883, net);
client.begin("public.cloud.shiftr.io", 8883, net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoEthernetShield/ArduinoEthernetShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// an Ethernet Shield to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -20,7 +20,7 @@ unsigned long lastMillis = 0;

void connect() {
Serial.print("connecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -46,7 +46,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoMKRGSM1400/ArduinoMKRGSM1400.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// IMPORTANT: This example uses the new MKRGSM library.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Sandeep Mistry
// https://github.com/256dpi/arduino-mqtt
Expand Down Expand Up @@ -43,7 +43,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -68,7 +68,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoMKRGSM1400Secure/ArduinoMKRGSM1400Secure.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// IMPORTANT: This example uses the new MKRGSM library.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Sandeep Mistry
// https://github.com/256dpi/arduino-mqtt
Expand Down Expand Up @@ -43,7 +43,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -70,7 +70,7 @@ void setup() {
// by Arduino. You need to set the IP address directly.
//
// MQTT brokers usually use port 8883 for secure connections.
client.begin("broker.shiftr.io", 8883, net);
client.begin("public.cloud.shiftr.io", 8883, net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoWiFi101/ArduinoWiFi101.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// IMPORTANT: This example uses the new WiFi101 library.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Gilberto Conti
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -28,7 +28,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -54,7 +54,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoWiFi101Secure/ArduinoWiFi101Secure.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// https://github.com/arduino-libraries/WiFi101-FirmwareUpdater#to-update-ssl-certificates
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Gilberto Conti
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -31,7 +31,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand Down Expand Up @@ -59,7 +59,7 @@ void setup() {
// by Arduino. You need to set the IP address directly.
//
// MQTT brokers usually use port 8883 for secure connections.
client.begin("broker.shiftr.io", 8883, net);
client.begin("public.cloud.shiftr.io", 8883, net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoWiFiShield/ArduinoWiFiShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// a WiFi Shield to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -26,7 +26,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -52,7 +52,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoYun/ArduinoYun.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// and the MQTTClient to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -18,7 +18,7 @@ unsigned long lastMillis = 0;

void connect() {
Serial.print("connecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -44,7 +44,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ArduinoYunSecure/ArduinoYunSecure.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// and the MQTTClient to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -18,7 +18,7 @@ unsigned long lastMillis = 0;

void connect() {
Serial.print("connecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand Down Expand Up @@ -46,7 +46,7 @@ void setup() {
// by Arduino. You need to set the IP address directly.
//
// MQTT brokers usually use port 8883 for secure connections.
client.begin("broker.shiftr.io", 8883, net);
client.begin("public.cloud.shiftr.io", 8883, net);
client.onMessage(messageReceived);

connect();
Expand Down
6 changes: 3 additions & 3 deletions examples/ESP32DevelopmentBoard/ESP32DevelopmentBoard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -26,7 +26,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand All @@ -52,7 +52,7 @@ void setup() {

// Note: Local domain names (e.g. "Computer.local" on OSX) are not supported
// by Arduino. You need to set the IP address directly.
client.begin("broker.shiftr.io", net);
client.begin("public.cloud.shiftr.io", net);
client.onMessage(messageReceived);

connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
// connection here: https://www.shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
Expand All @@ -26,7 +26,7 @@ void connect() {
}

Serial.print("\nconnecting...");
while (!client.connect("arduino", "try", "try")) {
while (!client.connect("arduino", "public", "public")) {
Serial.print(".");
delay(1000);
}
Expand Down Expand Up @@ -54,7 +54,7 @@ void setup() {
// by Arduino. You need to set the IP address directly.
//
// MQTT brokers usually use port 8883 for secure connections.
client.begin("broker.shiftr.io", 8883, net);
client.begin("public.cloud.shiftr.io", 8883, net);
client.onMessage(messageReceived);

connect();
Expand Down

0 comments on commit cdef7fd

Please sign in to comment.