januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
359 stars 416 forks source link

react-native-bluetooth-escpos-printer first connecting attempt returns unable to connect device error, but on second attempt it connects #145

Open Lakshmi-Narasimha opened 3 years ago

Lakshmi-Narasimha commented 3 years ago

First connection attempt always falls with error Error: unable to connect device, but second connect successfully. BluetoothManager.connect(this.state.deviceAddr) .then((s)=>{ Alert.alert('connected') this.setState({loading: false, connected: true}) }, (err)=>{ //error here Alert.alert(err+'') this.setState({loading: false}) })

ralemos97 commented 3 years ago

I'm having the same problem

sof9816 commented 3 years ago

Did anyone find solution to this i am having the same problem

sindiAsx commented 10 months ago

Did anyone find a solution for this issue?