Skip to content
An addon for openFrameworks to connect to spacebro with a single line.
C++ Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
README.md
clone_addons.sh

README.md

An addon for openFrameworks to connect to spacebro with a single line.

Install

You need this repo, and clone other addons. We've prepared a script to do that for you. Install openFrameworks and then

cd your_of_path/addons
git clone git@github.com:soixantecircuits/ofxSpacebroClient.git
cd ofxSpacebroClient
bash clone_addons.sh

Usage

First, you need to regsiter your events

// Use spacebroClient.registerEvent(eventName) to create ofEvents you can listen to
ofAddListener(spacebroClient.registerEvent("stuff"), this, &ofApp::onStuff)

Then you can setup your client and register to the server

// Use spacebroClient.setup(clientName) to register as clientName to the server
spacebroClient.setup("ofxSpacebroClient")

Test

Run spacebro

Spacebro receives and broadcasts all messages to its clients.

git clone git@github.com:soixantecircuits/spacebro.git
cd spacebro
npm i
npm start

Run spacebro-client example

Run some other example to send data to ofxSpacebroClient example.

git clone git@github.com:soixantecircuits/spacebro-client.git
cd spacebro-client
npm i
npm start

Run this example

Now you're ready to receive data

cd example
make
make run
You can’t perform that action at this time.