don / BluetoothSerial

Cordova (PhoneGap) Plugin for Serial Communication over Bluetooth
Other
1.07k stars 669 forks source link

Unable to implement BluetoothSerial in the constructor #439

Open kobrecht12 opened 3 years ago

kobrecht12 commented 3 years ago

I am attempting to add "private bluetoothSerial: BluetoothSerial" in my constructor but it is saying that BluetoothSerial is a value and it instead suggests BluetoothSerialOriginal. If I add this to the import statement and also change the constructor to be "private bluetoothSerial: BluetoothSerialOriginal" it works and I can use all of the functions, but when I try to run "ionic cordova run android --device", I get an error saying: "export 'BluetoothSerialOriginal' was not found in '@ionic-native/bluetooth-serial' Does BluetoothSerial still work? If so, how do I properly implement it? If not, does BluetoothLE or BLE still work for Ionic?

For reference, here is my Ionic info: Ionic: Ionic CLI : 6.12.4 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.5.4 @angular-devkit/build-angular : 0.1000.8 @angular-devkit/schematics : 11.0.7 @angular/cli : 11.0.7 @ionic/angular-toolkit : 2.3.3

Cordova: Cordova CLI : 10.0.0 Cordova Platforms : android 9.0.0, ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 14 other plugins)

my bluetooth-serial plugin is version 6.3.0

avisiboni commented 1 year ago

Same here, Have any progress?