1.0.4 • Published 7 months ago

rn-usb-serial v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

KEYVALUE
RETURNED DATA TYPEINT ARRAY (Options: INTARRAY, HEXSTRING)
BAUD RATE9600
AUTO CONNECT BAUD RATE9600
PORT INTERFACE-1
DATA BIT8
STOP BIT1
PARITYNONE
FLOW CONTROLOFF
DRIVERAUTO

Java Package Name

com.mbm1607.rnserialport