是否存在可以枚举端口的跨平台c ++串行端口库? [英] Is there a cross platform c++ serial port library that can enumerate ports?

查看:90
本文介绍了是否存在可以枚举端口的跨平台c ++串行端口库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个可以连接到串行端口设备并与之通信的c ++库。我需要一个可以在Windows和Linux上使用的软件。我已经找到了 serialib,但这没有枚举可用端口的功能。

I am looking for a c++ library that can connect to and communicate with serial port devices. I need one that can be used on windows and linux. I have found "serialib" already but this has no feature for enumerating the available ports.

所以我要么需要一个跨平台的端口枚举器库,要么需要一个全新的十字架平台串行端口库。

So I either need a cross platform "port enumerator" library or a whole new cross platform serial port library.

有人知道好的吗?

谢谢丹。

推荐答案

http:// wjwwood。 io / serial /

https:// github.com/wjwwood/serial

这是一个跨平台的串行端口库,已获得MIT许可,并且没有运行时的外部依赖项。

This is a cross-platform serial port library, which is MIT licensed and has no external dependencies for runtime.

这篇关于是否存在可以枚举端口的跨平台c ++串行端口库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆