Add serial port listing test
This commit is contained in:
parent
30311c1bd0
commit
0cd8abb897
1 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,16 @@ const App = () => {
|
|||
close
|
||||
</button>
|
||||
<button type="button" onClick={handler}>send</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
const list = SerialPort.list();
|
||||
list.then((arg) => { console.log(arg); });
|
||||
}}
|
||||
>
|
||||
list
|
||||
</button>
|
||||
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Reference in a new issue