React native react本机bluetooth escpos打印机第一次连接尝试返回无法连接设备错误,但第二次连接尝试返回无法连接设备错误

React native react本机bluetooth escpos打印机第一次连接尝试返回无法连接设备错误,但第二次连接尝试返回无法连接设备错误,react-native,printing,bluetooth,React Native,Printing,Bluetooth,我使用本机蓝牙escpos打印机。第一次连接尝试总是失败,错误为:无法连接设备,但第二次连接成功 BluetoothManager.connect(this.state.deviceAddr) .then((s)=>{ Alert.alert('connected') this.setState({loading: false, connected: true}) }, (err)=>{

我使用本机蓝牙escpos打印机。第一次连接尝试总是失败,错误为:无法连接设备,但第二次连接成功

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})
        })

你的问题解决了吗?我用wifi打印)哦,很好。你能告诉我确切的包裹名称吗?你的问题解决了吗?我用wifi打印)哦,很好。你能告诉我包裹的确切名称吗?