This commit is contained in:
Sergey Yarkov 2022-11-03 22:21:42 +03:00
parent 06e0aa8dd3
commit f9bc1ea74c

View File

@ -175,5 +175,7 @@ const app = new Application(document.getElementById('app'));
setInterval(async () => {
if (app.serialPortHandler.isOpened) {
await app.serialPortHandler.write('led_toggle' + '\n');
const message = await app.serialPortHandler.read();
console.log(message);
}
}, 500);