1.1.3 • Published 7 months ago

react-read-weight v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months 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

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago