flyskywhy / react-native-usb-serialport

High performance JAVA native gateway passthrough between multi usb serial port and multi socket without JS bridge, or just use multi usb serial port or socket alone
MIT License
26 stars 24 forks source link

WriteString error #4

Closed MrTVDEV closed 2 years ago

MrTVDEV commented 2 years ago

Hello,

When I do "RNSerialport.writeString("Hello");", I get the error RNSerialport.writeString got 1 arguments, expected 2 .

Have you ever had the error? I really don't see where it can come from.

Thank you in advance.

flyskywhy commented 2 years ago

As I described in README.md that fork diff from react-native-serialport:

-  RNSerialport.writeString('HELLO');
+  RNSerialport.writeString('/dev/bus/usb/001/007', 'HELLO');