xseignard / cordovarduino

Cordova/Phonegap plugin for USB host serial communication from an Android device.
MIT License
166 stars 110 forks source link

After a few hours the connection is lost #98

Open Jaytt opened 6 years ago

Jaytt commented 6 years ago

I'm using it fr a aplication that must be on at least 12 h a day, but after just 2 ou 3 hours the conection is lost i tried every thing i could but it won't work. It seem like i can't reconect or detect it it has disconected with out some one going to the tablet and do it manualy. Is this a known issue? Has it already be fixed?

robindierckx commented 5 years ago

workaround: you can create an interval that tries to read or write on your usb device. When there is an error, you reset the connection (by closing the connection, asking for permission again and opening a new one)