FastLED 3.10.8
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 85 of file serial.h.

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

References FL_NO_EXCEPT, nullopt, and readLine().

+ Here is the call graph for this function: