add nodejs serial example

This commit is contained in:
liamcottle 2025-04-08 12:14:21 +12:00
parent a324e15553
commit d5099eec20
2 changed files with 28 additions and 2 deletions

View file

@ -63,8 +63,7 @@ class WebSerialConnection extends SerialConnection {
}
// override
async write(bytes) {
/* override */ async write(bytes) {
const writer = this.writable.getWriter();
try {
await writer.write(new Uint8Array(bytes));