22 m_sendPort.
write(msg);
62 return m_rpc.
setDTR(enable);
98 std::string
local_send =
"/serialPort_nwc_yarp/out";
99 std::string
remote_send =
"/serialPort_nws_yarp/in";
virtual bool setDTR(const bool enable)
virtual std::int32_t flush()
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
int receiveLine(char *line, const int MaxLineLength) override
Gets one line (a sequence of chars with a ending '\n' or '\r') from the receive queue.
bool send(const Bottle &msg) override
Sends a string of chars to the serial communications channel.
~SerialPort_nwc_yarp() override
bool close() override
Close the DeviceDriver.
int receiveChar(char &c) override
Gets one single char from the receive queue.
int flush() override
Flushes the internal buffer.
int receiveBytes(unsigned char *bytes, const int size) override
Gets an array of bytes (unsigned char) with size <= 'size' parameter.
bool receive(Bottle &msg) override
Gets the existing chars in the receive queue.
bool open(Searchable &prop) override
Open the DeviceDriver.
bool setDTR(bool enable) override
Enable/Disable DTR protocol.
A simple collection of objects that can be described and transmitted in a portable way.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
A mini-server for performing network communication in the background.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A base class for nested structures that can be searched.
bool attachAsClient(yarp::os::UnbufferedContactable &port)
Tag this WireLink as a client, sending data via the specified port.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)