10#include <catch2/catch_amalgamated.hpp>
21 Network::setLocalMode(
true);
23 SECTION(
"Checking serialPort_nws_yarp device alone")
30 p_cfg.put(
"device",
"serialPort_nws_yarp");
31 p_cfg.put(
"name",
"/serialPort_nws");
43 SECTION(
"Checking serialPort_nws_yarp device attached to fake device")
51 pnws_cfg.put(
"device",
"serialPort_nws_yarp");
52 pnws_cfg.put(
"name",
"/serialPort_nws");
56 pdev_cfg.put(
"device",
"fakeSerialPort");
71 CHECK(Network::connect(
"/test:o",
"/serialPort_nws/in"));
88 Network::setLocalMode(
false);
A container for a device driver.
bool close() override
Close the DeviceDriver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
Helper interface for an object that can wrap/or "attach" to a single other device.
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.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A class for storing options and configuration information.
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.
TEST_CASE("dev::serialPort_nws_yarp", "[yarp::dev]")