shared_serial/SendRecv Service

File: shared_serial/SendRecv.srv

Raw Message Definition

# Send data to serial port and wait for reply.

# Either 0 (connectionless) or an unexpired socket identifier
# from an earlier communication.
uint32  socket

# Data to send
uint8[] send_data

# Number of bytes to receive.
uint32  length

# Number of seconds to wait for data.
float32 recv_timeout

# Number of seconds to keep the port locked after this communication.
float32 sock_timeout

---

# Socket identifier for further communications.
uint32  socket

# Received data.
uint8[] recv_data

Compact Message Definition

uint32 socket
uint8[] send_data
uint32 length
float32 recv_timeout
float32 sock_timeout

uint32 socket
uint8[] recv_data