MCPcopy Create free account
hub / github.com/cinder/Cinder / readChar

Function readChar

include/cinder/Serial.h:77–77  ·  view source on GitHub ↗

Returns a single character read from the serial port

Source from the content-addressed store, hash-verified

75 uint8_t readByte();
76 //! Returns a single character read from the serial port
77 char readChar() { return static_cast<char>( readByte() ); }
78
79 //! Returns a string composed of bytes read until a character \a token is found, or up to \a maxLength bytes have been read and \a maxLength > 0. Throws a SerialTimeoutExc() if timeoutSeconds > 0 and \a timeoutSeconds seconds pass before \a token is found.
80 std::string readStringUntil( char token, size_t maxLength = 0, double timeoutSeconds = -1.0 );

Callers 1

readStringUntilMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected