4#ifndef AUBO_SDK_SERIAL_INTERFACE_H
5#define AUBO_SDK_SERIAL_INTERFACE_H
11#include <aubo/global_config.h>
14namespace common_interface {
61 int serialOpen(
const std::string &device,
int baud,
float stop_bits,
62 int even,
const std::string &serial_name =
"serial_0");
124 const std::string &serial_name =
"serial_0");
160 const std::string &serial_name =
"serial_0");
219 const std::string &serial_name =
"serial_0",
220 const std::string &prefix =
"",
221 const std::string &suffix =
"",
222 bool interpret_escape =
false);
322 const std::string &serial_name =
"serial_0");
356 const std::string &serial_name =
"serial_0");
387 const std::string &serial_name =
"serial_0");
int serialSendAllString(bool is_check, const std::vector< char > &str, const std::string &serial_name="serial_0")
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 AS...
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 serialClose(const std::string &serial_name="serial_0")
Close TCP/IP serial communication Close down the serial connection to the server.
int serialReadByteList(int number, const std::string &variable, const std::string &serial_name="serial_0")
Reads a number of bytes from 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 serialReadByte(const std::string &variable, const std::string &serial_name="serial_0")
Reads a number of bytes from the serial.
int serialSendByte(char value, const std::string &serial_name="serial_0")
Sends a byte to the server Sends the byte through the 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 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.
std::shared_ptr< Serial > SerialPtr