Skip to content

ofxArtnetReceiver

Jonathan Blair edited this page Jan 7, 2020 · 4 revisions

ofxArtnetReceiver

Recieves ArtNet data.

Public Methods

constructor

ofxArtnetReciever()

sestructor

~ofxArtnetReciever()

If the thread is running, it stops the thread and closes the connection.


setup

void setup(const unit16_t port = 6454);

Sets up UDP and opens a connection on the specified port.


hasMessage

bool hasMessage() const;

Returns true if there is an ArtNet message on the specified port.


getData

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.


getNextData

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.

Protected Methods

threadedFunction

void threadedFunction();

While the thread is running, monitors UDP connection for incoming ArtNet data.

Clone this wiki locally