Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rn-usb-serial

mbm1607169MIT1.0.4TypeScript support: included

This library is for usb serial port communication on android platforms

react-native-serialport, react-native-usb-serial, rn-usb-serial, android serialport, react native usb serialport communication, expo

readme

rn-usb-serial

This library is for usb serial port communication on android platform. This module uses the felHR85/UsbSerial library.

Forked from melihyarikkaya/react-native-serialport

This fork is intended to update the react native version & gradle dependencies to the latest versions.

Documents

  1. Installation
  2. Auto Connection
  3. Manual Connection
  4. Methods
  5. Error Descriptions

Use to write data to port

RNSerialport.writeString('HELLO');
RNSerialport.writeBase64('SEVMTE8=');
RNSerialport.writeHexString('48454C4C4F');

DEFAULT DEFINITIONS

KEY VALUE
RETURNED DATA TYPE INT ARRAY (Options: INTARRAY, HEXSTRING)
BAUD RATE 9600
AUTO CONNECT BAUD RATE 9600
PORT INTERFACE -1
DATA BIT 8
STOP BIT 1
PARITY NONE
FLOW CONTROL OFF
DRIVER AUTO

Java Package Name

com.mbm1607.rnserialport