python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to read bytes response from web serial api writer
I'm trying to work with Web Serial API. I want to write bytes to device and read bytes response from it.
I can write bytes as well as string to device - here everything working as expected.
I can read...
bmrki
Votes: 0
Answers: 1
Web Serial Api ->{value,done} -> the done is not getting true even after reading the whole data sent by the serial port device
const { value, done } = await reader.read();
There is this above line used in the docs (https://web.dev/serial/) to read the data coming from the serial port. Docs say that the done will turn out to b...
Akash Bhardwaj
Votes: 0
Answers: 2
auto connection to serial port device with web serial API
what should I do to connect the serial device automatically with the filter device when it plug-in into the computer. I am using web serial API to connect serial devices.
Tejas Chauhan
Votes: 0
Answers: 1
web serial api readable stream code not work well
while (true) {
let { value, done } = await reader.read();
if (done) {
// |reader| has been canceled.
console.log("brack");
break;
}
console.log(value);
...
Tejas Chauhan
Votes: 0
Answers: 1