lib60870 icon indicating copy to clipboard operation
lib60870 copied to clipboard

invalid application of ‘sizeof’ to incomplete type ‘sSerialPort’

Open DonavanMartin opened this issue 2 years ago • 2 comments

This lib missing a way to access socket properties.

struct sSerialPort { char interfaceName[100]; int fd; int baudRate; uint8_t dataBits; char parity; uint8_t stopBits; uint64_t lastSentTime; struct timeval timeout; SerialPortError lastError; };

DonavanMartin avatar May 11 '22 17:05 DonavanMartin

It's an internal structure. The user shouldn't manipulate it.

mzillgith avatar May 12 '22 07:05 mzillgith

User could need access to fd if he want to configure flag with ioctl (e.g. like the Modbus lib.)

DonavanMartin avatar May 13 '22 11:05 DonavanMartin