AndroidSerialPort
AndroidSerialPort copied to clipboard
SerialPort需要在添加一个构造
/** * @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 {}
开发的项目需要配置串口