触发事件
事件类型
Rest
...args: { 事件参数
取消监听
Rest
...args: { 添加监听
Event type
A callback function to process the incomming event
Rest
...args: { 添加一次性监听
Event type
A callback function to process the incomming event
Rest
...args: { 读取数据到指定缓冲对象。
实际读取的字节数。
缓冲对象
向数据流写数据,返回实际写入的字节数。
实际写入的字节数
数据
写入全部数据
数据
UART 设备句柄
Description
通过 UART.open() 打开UART设备后,返回此句柄对象,用于操控UART设备(例如读写等)。当此对象被释放时,打开的UART设备自动关闭。