AUBO SDK  0.26.0
arcs::common_interface::Serial Class Reference

#include <serial.h>

Public Member Functions

 Serial ()
virtual ~Serial ()
int serialOpen (const std::string &device, int baud, float stop_bits, int even, const std::string &serial_name="serial_0")
 Open TCP/IP ethernet communication serial
int serialClose (const std::string &serial_name="serial_0")
 Close TCP/IP serial communication Close down the serial connection to the server.
int serialReadByte (const std::string &variable, const std::string &serial_name="serial_0")
 Reads a number of bytes from the serial.
int serialReadByteList (int number, const std::string &variable, const std::string &serial_name="serial_0")
 Reads a number of bytes from the serial.
int serialReadString (const std::string &variable, const std::string &serial_name="serial_0", const std::string &prefix="", const std::string &suffix="", bool interpret_escape=false)
 Reads all data from the serial and returns the data as a string.
int serialSendByte (char value, const std::string &serial_name="serial_0")
 Sends a byte to the server Sends the byte through the serial.
int serialSendInt (int value, const std::string &serial_name="serial_0")
 Sends an int (int32_t) to the server Sends the int through the serial.
int serialSendLine (const std::string &str, const std::string &serial_name="serial_0")
 Sends a string with a newline character to the server Sends the string <str> through the serial in ASCII coding, appending a newline at the end.
int serialSendString (const std::string &str, const std::string &serial_name="serial_0")
 Sends a string to the server Sends the string <str> through the serial in ASCII coding.
int serialSendAllString (bool is_check, const std::vector< char > &str, const std::string &serial_name="serial_0")

Protected Attributes

void * d_

Detailed Description

Definition at line 21 of file serial.h.

Constructor & Destructor Documentation

◆ Serial()

arcs::common_interface::Serial::Serial ( )

◆ ~Serial()

virtual arcs::common_interface::Serial::~Serial ( )
virtual

Member Data Documentation

◆ d_

void* arcs::common_interface::Serial::d_
protected

Definition at line 405 of file serial.h.


The documentation for this class was generated from the following file: