xseignard / cordovarduino

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

Error:Baud rate 57600 currently not supported #119

Closed joeyoyo closed 4 years ago

joeyoyo commented 4 years ago

Describe the bug I try to connect the board,but the baud rate 57600 is not supported. because my board is set to be baud rate 57600

var openSe = document.getElementById('openSe'); var errorCallback = function(message) { alert('Error: ' + message); }; openSe.onclick = function() { serial.requestPermission( function(successMessage) { serial.open({ baudRate: 57600 }, function(successMessage) { open = true; }, errorCallback ); }, errorCallback ); };

To Reproduce

  1. cordova Version 9.0.0
  2. Serial port communication of Lora device gateway by mobile OTG
  3. Huawei mate 30 pro

Thanks