- Preparing search index...
- The search index is not available
nodewox
- open(id: 0 | 1, options: {
baudrate?: number;
dataBits?: 5 | 6 | 7 | 8;
parity?: "none" | "odd" | "event";
rx: Byte;
stopBits?: 2 | 1 | 1.5;
tx: Byte;
}): UartHandle
-
Parameters
-
id: 0 | 1
-
options: {
baudrate?: number;
dataBits?: 5 | 6 | 7 | 8;
parity?: "none" | "odd" | "event";
rx: Byte;
stopBits?: 2 | 1 | 1.5;
tx: Byte;
}
-
Optional
baudrate?: number
-
Optional
dataBits?: 5 | 6 | 7 | 8
-
Optional
parity?: "none" | "odd" | "event"
-
-
Optional
stopBits?: 2 | 1 | 1.5
-
打开 UART 设备,并返回操控句柄对象。
Returns
Uart句柄对象