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); }
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; }