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

SerialPort需要在添加一个构造 #1

Open
azhon opened this issue Nov 28, 2018 · 0 comments
Open

SerialPort需要在添加一个构造 #1

azhon opened this issue Nov 28, 2018 · 0 comments

Comments

@azhon
Copy link

azhon commented Nov 28, 2018

/**
* @param device 串口设备文件
* @param baudrate 波特率,一般是9600
* @param flags 传0就好
* @param parity 奇偶校验,0 None, 1 Odd, 2 Even
* @param dataBits 数据位,5 - 8
* @param stopBit 停止位,1 或 2
*/
public SerialPort(File device, int baudrate, int flags, int parity, int dataBits, int stopBit) throws SecurityException, IOException {}

开发的项目需要配置串口

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

1 participant