A demo showing the basics of Web Serial API to connect a browser with serial devices.
Check out the blog post on Web Serial API to learn more about it: https://dev.to/unjavascripter/the-amazing-powers-of-the-web-web-serial-api-3ilc
- Upload the code in
./web_serial_onboard_led.inoto your Arduino device - Enable Chrome's Experimental Web Platform Features by visiting chrome://flags/#enable-experimental-web-platform-features
- Run the demo app locally
- Use the "Connect to serial port" of the web app to connect to the right port
- Send a
1tu turn the led on, or a0to turn it off