forked from hiroyuki/ofxArtnet
-
Notifications
You must be signed in to change notification settings - Fork 0
ofxArtnetReceiver
Jonathan Blair edited this page Jan 7, 2020
·
4 revisions
Recieves ArtNet data.
ofxArtnetReciever()
~ofxArtnetReciever()
If the thread is running, it stops the thread and closes the connection.
void setup(const unit16_t port = 6454);
Sets up UDP and opens a connection on the specified port.
bool hasMessage() const;
Returns true if there is an ArtNet message on the specified port.
void getData(ofxArtnetMessage& m);
Takes a refrence to an instance of ofxArtnetMessage
and assigns it to the data received from ArtNet. Loops through all current messages.
void getNextData(ofxArtnetMessage& m);
Takes a refrence to an instance of ofxArtnetMessage
and assigns it to the data received from ArtNet. Similar to getData
, but only assigns the first message.
void threadedFunction();
While the thread is running, monitors UDP connection for incoming ArtNet data.