Skip to content

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

@azhon

Description

@azhon

/**
* @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 {}

开发的项目需要配置串口

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions