Skip to content

Commit

Permalink
Add usb scale debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
HoverEpic committed Feb 22, 2024
1 parent e1864c4 commit 25e09b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ifaces/collecte.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@

// Wait for the serial port to open.
await port.open({ baudRate: 9600 });

// get port info for later filtering
const { usbProductId, usbVendorId } = port.getInfo();
console.log("Serial connected usbProductId:" + usbProductId + " usbVendorId:" + usbVendorId)

while (port.readable) {
const reader = port.readable.getReader();

Expand Down

0 comments on commit 25e09b4

Please sign in to comment.