1.3.27 • Published 10 months ago

@kleepier9/rn-android-usbserial v1.3.27

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

rn-android-usbserial

This library is for USB serial port communication on Android platform.

Documents

  1. Auto Connection
  2. Manual Connection
  3. Methods
  4. 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 RATE115200
AUTO CONNECT BAUD RATE115200
PORT INTERFACE-1
DATA BIT8
STOP BIT1
PARITYNONE
FLOW CONTROLOFF
DRIVERAUTO

Java Package Name

com.kleepier9.rnandroidusbserial


📦 NPM Package

This fork is now published on NPM:
@kleepier9/rn-android-usbserial

Install it in your project:

npm install @kleepier9/rn-android-usbserial

🔁 Version Bumping & Publishing to NPM

When making changes to the library, follow these steps to publish a new version:

1. Bump the version

Update the version field in your package.json:

{
  "version": "1.3.25"
}

2. Commit the change

git add package.json
git commit -m "chore: bump version to 1.3.25"

3. Tag the new version

git tag v1.3.25

4. Push the tag and commit

git push origin main
git push origin v1.3.25

⚠️ Replace main with master if your branch hasn't been renamed.

5. Publish to NPM

Make sure you're logged into your npm account:

npm login

Then publish:

npm publish --access public

After this, the updated version will be available via:

npm install @kleepier9/rn-android-usbserial@latest