Skip to content

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

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