1.1.3 • Published 3 years ago

react-read-weight v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

React Read Weight

React Read Weight is a JavaScript library designed to facilitate the process of opening a serial port and reading data from it. It harnesses the capabilities of the default Web Serial API to provide a seamless and efficient method for interacting with serial devices.

Installation

This library is supported in Chrome, Opera, and Microsoft Edge desktop browsers.

Installation

You can install this package using npm:

npm install react-read-weight

Usage

// Check serial port support
checkSupport();
import { openSerialPort, checkSupport } from 'react-read-weight';

// Open a serial port
openSerialPort()
  .then((data) => {
    console.log('Received data:', data);
  })
  .catch((error) => {
    console.error('Error opening the port:', error);
  });

License

MIT License. See LICENSE for details.

Creator

@pratikmirchapure

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago