Questions tagged [web-serial-api]
36 questions
0
votes
1 answer
Google Chrome Web Serial API: unexpected behaviour
I was able to prove that the following JavaScript code does not generate the desired Modbus signal.
…

5-HT2A
- 69
- 1
- 1
- 7
0
votes
1 answer
How to Define TextdecoderStream and TextEncoderStream while using Web Serial in react?
My code is like this in react when i run it, it says TextDecoderStream() & TextEncoderStream() is not defined.
async function connect() {
const port = await navigator.serial.requestPort();
// - Wait for the port to open.
await port.open({ baudRate:…
0
votes
1 answer
Potentiometer with Arduino sent to Javascript
I'm currently doing an exercise to send the potentiometer data through an Arduino into a webpage. I would prefer to do this through Web Serial API and not a node server or some thing like that.
My Arduino code is
void setup() {
…

sophiet
- 13
- 7
0
votes
2 answers
Google Chrome Web Serial API: How do I configure the parameters for Modbus RTU?
It is my intention to use the Web Serial API in Google Chrome to address a device with Modbus RTU.
The baud rate must be specified to start the setup - consequently this has already been done.
The following link leads to the part of a documentation…

5-HT2A
- 69
- 1
- 1
- 7
0
votes
1 answer
Using Web Serial with ReactJS
I am having a random set of data bits that I need to write to a serial port using a React app. When implementing using vanilla javascript the script is able to write to the esp module using serialport but when implementing the same in reactjs it…

Subham Mishra
- 1
- 1
0
votes
1 answer
Is possible to access web serial port in devtools or inspectedwindows?
I am trying find a way to connect a usb serial port in devtools so that I can use the data from a usb connect device in devtools.

Bismark Asiedu Asante
- 142
- 1
- 14