MCPcopy Create free account
hub / github.com/FastLED/FastLED / readSerialLine

Function readSerialLine

src/fl/remote/transport/serial.h:82–85  ·  view source on GitHub ↗

@brief Optimized readSerialLine for fl:: serial input @param serial SerialReader adapter (unused, for API consistency) @param delimiter Line delimiter character (default: '\n') @param timeoutMs Optional timeout in milliseconds (nullopt = wait forever) @return Optional string containing the line (without delimiter), or nullopt if timeout @note Delegates to normalized fl::readLine() API with default

Source from the content-addressed store, hash-verified

80/// @return Optional string containing the line (without delimiter), or nullopt if timeout
81/// @note Delegates to normalized fl::readLine() API with default skipChar='\r'
82inline fl::optional<fl::string> readSerialLine(SerialReader& serial, char delimiter = '\n', fl::optional<u32> timeoutMs = fl::nullopt) {
83 (void)serial; // Unused, we call fl::readLine() directly
84 return fl::readLine(delimiter, '\r', timeoutMs);
85}
86
87/// @brief Serial adapter using fl:: output functions (fl::println)
88/// @note Works across all FastLED platforms

Callers

nothing calls this directly

Calls 2

readLineFunction · 0.85
readSerialStringUntilFunction · 0.85

Tested by

no test coverage detected