Skip to content

Commit

Permalink
use new public shiftr.io instance
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Jan 6, 2021
1 parent 264a8e1 commit c0f2d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ This addon is an alternative to [ofxMosquitto](https://github.com/hideyukisaito/

## Example

The following example connects to shiftr.io. You can check on your app after a successful connection here: <https://shiftr.io/try>.
The following example connects to the public shiftr.io instance. You can check on your app after a successful connection here: <https://www.shiftr.io/try>.

```c++
#include "ofApp.h"

void ofApp::setup(){
client.begin("broker.shiftr.io", 1883);
client.connect("openframeworks", "try", "try");
client.begin("public.cloud.shiftr.io", 1883);
client.connect("openframeworks", "public", "public");

ofAddListener(client.onOnline, this, &ofApp::onOnline);
ofAddListener(client.onOffline, this, &ofApp::onOffline);
Expand Down
4 changes: 2 additions & 2 deletions example-ofxMQTT/src/ofApp.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "ofApp.h"

void ofApp::setup(){
client.begin("broker.shiftr.io", 1883);
client.connect("openframeworks", "try", "try");
client.begin("public.cloud.shiftr.io", 1883);
client.connect("openframeworks", "public", "public");

ofAddListener(client.onOnline, this, &ofApp::onOnline);
ofAddListener(client.onOffline, this, &ofApp::onOffline);
Expand Down

0 comments on commit c0f2d05

Please sign in to comment.