"Expected at least 2 bytes" with a cordova plugin on Ionic 2


#1

Hello,

I’m currently using the plugin cordovarduino on my Ionic 2 project . This plugin allows the mobile to connect with the USB serial connection with a FTDI devices in our case.

In order to read the data I have to ask for a permission and open a port ( I succeed on that ) but when I try to read the data I have this error: “Expected at least 2 bytes” . And I can’t understand from where it comes from. And I don’t understand what it means either.

Thanks a lot for your help