Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed calls from JS: field sizes are different. #35

Open
cenixcoatl opened this issue Feb 21, 2021 · 1 comment
Open

Malformed calls from JS: field sizes are different. #35

cenixcoatl opened this issue Feb 21, 2021 · 1 comment

Comments

@cenixcoatl
Copy link

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)

@juanmaotegui
Copy link

I fixed it with this solution #34

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants