Add serial port listing test

This commit is contained in:
GHOSCHT 2021-06-30 09:51:39 +02:00
parent 30311c1bd0
commit 0cd8abb897

View file

@ -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>
);
};