Skip to content

anael-root/webSerialLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webseriallib

Tiny library to ease webserial connection in browser (only chrome and edge supported). Demo

Licence

This is licenced under MIT licence. Find more in the licence file.

Usage

Import library

import {webseriallib} from "webseriallib"

Check if serial is available in your browser

webseriallib.isBrowserCompatible()

Connect

var webserial = new webseriallib(this.speedSelected)
await webserial.connect();

Monitor variables

webserial.history
webserial.connected

Send message

webserial.send(message)

Disconnect

webserial.disconnect()

About

Tiny library to ease webserial connection in browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published