react-native-serialport icon indicating copy to clipboard operation
react-native-serialport copied to clipboard

Malformed calls from JS: field sizes are different.

Open cenixcoatl opened this issue 4 years ago • 1 comments

Hi I am testing this for the first time by trying to connect with an arduino Leonardo. I am using the example here

https://github.com/melihyarikkaya/react-native-serialport/wiki/Manual-Connection

and using react-native run-android on a Samsung Galaxy s10E, once the app is running I connect the arduino to the usb port on ty phone and I get the error shown in the images.

I installed this with

npm install --save react-native-serialport react-native link react-native-serialport

Here the logs WhatsApp Image 2021-02-20 at 18 05 09 WhatsApp Image 2021-02-20 at 18 05 09 (1)

cenixcoatl avatar Feb 21 '21 00:02 cenixcoatl

I fixed it with this solution #34

Change: RNSerialport.getDeviceList(response => { ... })

to: RNSerialport.getDeviceList().then(response => { ... })

juanmaotegui avatar Mar 10 '21 14:03 juanmaotegui