simplifies the serial communication from openFrameworks
C++ Processing
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example reading multiple vars
example reading single var
example writing vars simultaneously
example writing vars
src
README.md
install.xml

README.md

ofxsimpleserial

An addon that simplifies the serial communication from openFrameworks.

Automatic message completion 

Complete messages exist between \n's, send for example with Arduino with Serial.println(). If the complete message cannot be read during one "update" it will keep listening for updates for it to be completed. 

Simply use the message property to get the latest complete message.
Listen for the NEW_MESSAGE event to get properly notified.
Write to the serial connection using a string. 

Contains examples of:

Reading one piece of data.
Reading multiple pieces of data.
Writing one piece of data (string).
Writing multiple pieces of data (string). 

(All examples are made with openFrameworks and Arduino)

The addon normally uses a simple protocol to read data:

The addon writes a 'r' to the serial connection
The other party (Arduino for example) sends an update after it recieves this. 

(This ensures a in-sync transfer of data)