itas109 / CSerialPort

CSerialPort - lightweight cross-platform serial port library for C++/C/C#/Java/Python/Node.js/Electron
https://blog.csdn.net/itas109/article/details/84282860
Other
710 stars 337 forks source link

availablePortInfos() description and hardwareId empty on linux. #85

Closed janis8008 closed 4 months ago

janis8008 commented 4 months ago

itas109::CSerialPortInfo::availablePortInfos()

Fields hardwareId and description are empty on linux, only port name is provided.

Windows version contains all the information.

Package downloaded from vcpkg.

janis8008 commented 4 months ago

NoGuiExample returns all information, will try to find difference.

AvailableFriendlyPorts:
1 - /dev/ttyUSB0 cp210x 10c4:ea60
2 - /dev/ttyACM0 STMicroelectronics Virtual COM Port 0483:5740
3 - /dev/pts/0 0 pty terminal
janis8008 commented 4 months ago

Version im using in code is "https://github.com/itas109/CSerialPort - V4.3.0.230215" In no GUI "Version: https://github.com/itas109/CSerialPort - V4.3.1.240204"

janis8008 commented 4 months ago

Updating to V4.3.1.240204 resolved the issue.

Can vcpkg version be updated?