FastLED 3.9.15
Loading...
Searching...
No Matches

◆ readSerialLine() [2/2]

fl::optional< fl::string > fl::readSerialLine ( SerialReader & serial,
char delimiter = '\n',
fl::optional< u32 > timeoutMs = fl::nullopt )
inline

Optimized readSerialLine for fl:: serial input.

Parameters
serialSerialReader adapter (unused, for API consistency)
delimiterLine delimiter character (default: '
')
timeoutMsOptional timeout in milliseconds (nullopt = wait forever)
Returns
Optional string containing the line (without delimiter), or nullopt if timeout
Note
Delegates to normalized fl::readLine() API with default skipChar='\r'

Definition at line 82 of file serial.h.

82 {
83 (void)serial; // Unused, we call fl::readLine() directly
84 return fl::readLine(delimiter, '\r', timeoutMs);
85}
fl::optional< fl::string > readLine(char delimiter, char skipChar, fl::optional< u32 > timeoutMs)

References nullopt, and readLine().

+ Here is the call graph for this function: