|
| fl::function< fl::optional< fl::json >()> | fl::createSerialRequestSource (const char *prefix="") |
| | Create a JSON-RPC RequestSource that reads from fl:: serial input.
|
| |
| fl::function< void(const fl::json &)> | fl::createSerialResponseSink (const char *prefix="REMOTE: ") |
| | Create a JSON-RPC ResponseSink that writes to fl:: serial output.
|
| |
| fl::pair< fl::function< fl::optional< fl::json >()>, fl::function< void(const fl::json &)> > | fl::createSerialTransport (const char *responsePrefix="REMOTE: ", const char *requestPrefix="") |
| | Create RequestSource and ResponseSink pair for serial I/O.
|
| |
| fl::string | fl::formatJsonResponse (const fl::json &response, const char *prefix="") |
| | Serialize JSON response to a string.
|
| |
| template<typename SerialIn> |
| fl::optional< fl::string > | fl::readSerialLine (SerialIn &serial, char delimiter='\n', fl::optional< u32 > timeoutMs=fl::nullopt) |
| | Read a line from a serial-like input source (blocking with optional timeout)
|
| |
| fl::optional< fl::string > | fl::readSerialLine (SerialReader &serial, char delimiter='\n', fl::optional< u32 > timeoutMs=fl::nullopt) |
| | Optimized readSerialLine for fl:: serial input.
|
| |
| template<typename SerialIn> |
| fl::optional< fl::string > | fl::readSerialStringUntil (SerialIn &serial, char delimiter, char skipChar, fl::optional< u32 > timeoutMs) |
| |
| template<typename SerialOut> |
| void | fl::writeSerialLine (SerialOut &serial, const fl::string &str) |
| | Write a string with newline to a serial-like output.
|
| |