Esempio n. 1
0
void tinyG::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args)
{
    // Errors and their corresponding buffer (if any) will show up here.
    SerialMessage message(args.getBuffer().toString(),
                          args.getException().displayText(),
                          1000);
}
Esempio n. 2
0
void ofApp::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args)
{
    // Errors and their corresponding buffer (if any) will show up here.
    SerialMessage message(args.getBuffer().toString(),
                          args.getException().displayText(),
                          500);
    
    serialMessages.push_back(message);
    ofLogNotice("onSerialError") << "got serial error : " << message.exception;
}
Esempio n. 3
0
void chladniRC::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args){
	// Errors and their corresponding buffer (if any) will show up here.
	string message(args.getException().displayText());
	//serialMessages.push_back(message);
}