Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DonavanMartin opened this issue May 11, 2022 · 2 comments

Comments

@DonavanMartin
Copy link

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;
};

@mzillgith
Copy link
Contributor

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

@DonavanMartin
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants