@kleepier9/rn-android-usbserial
v1.3.27
Published
Forked version of rn-android-usbserial with enhanced USB-CDC support and ESP32 auto-detection
Maintainers
Readme
rn-android-usbserial
This library is for USB serial port communication on Android platform.
Documents
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 | 115200 | | AUTO CONNECT BAUD RATE | 115200 | | PORT INTERFACE | -1 | | DATA BIT | 8 | | STOP BIT | 1 | | PARITY | NONE | | FLOW CONTROL | OFF | | DRIVER | AUTO |
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.254. Push the tag and commit
git push origin main
git push origin v1.3.25⚠️ Replace
mainwithmasterif your branch hasn't been renamed.
5. Publish to NPM
Make sure you're logged into your npm account:
npm loginThen publish:
npm publish --access publicAfter this, the updated version will be available via:
npm install @kleepier9/rn-android-usbserial@latest