11#include <catch2/catch_amalgamated.hpp>
23 Network::setLocalMode(
true);
25 SECTION(
"Checking serialPort_nwc_yarp device")
34 pnws_cfg.put(
"device",
"serialPort_nws_yarp");
35 pnws_cfg.put(
"name",
"/serialPort_nws_yarp");
39 pdev_cfg.put(
"device",
"fakeSerialPort");
50 pnwc_cfg.put(
"device",
"serialPort_nwc_yarp");
51 pnwc_cfg.put(
"local",
"/serialPort_nwc_yarp");
52 pnwc_cfg.put(
"remote",
"/serialPort_nws_yarp/rpc");
61 std::string s(
"fake_command");
75 Network::setLocalMode(
false);
A generic interface to serial port devices.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
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 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_nwc_yarp", "[yarp::dev]")