lib60870
lib60870 copied to clipboard
invalid application of ‘sizeof’ to incomplete type ‘sSerialPort’
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; };
It's an internal structure. The user shouldn't manipulate it.
User could need access to fd if he want to configure flag with ioctl (e.g. like the Modbus lib.)