Closed krunalshoppiko closed 5 months ago
Get connected device is failing since you're not connected. Paired is paired, connected is an open socket. So the first error is expected.
The second error looks like your device is not accepting connections. Either it's the wrong device or it's not in accept more.
You'll need to debug more to find out which.
What is connection type rfcomm? The standard are delimited and binary? Did you write your own connection?
- Get connected device is failing since you're not connected. Paired is paired, connected is an open socket. So the first error is expected.
- The second error looks like your device is not accepting connections. Either it's the wrong device or it's not in accept more.
You'll need to debug more to find out which.
What is connection type rfcomm? The standard are delimited and binary? Did you write your own connection?
for connection type i use this type as pr the document Link
So my device is socket mobile S700 Link
When i paired this device it's connect to my mobile bluetooth when i open the mobile bluetooth then i see that device is connected but i return to my app and try to get connected device or get status of connected device like isConnected using address it's getting error even though device connected with mobile bluetooth.
if my device is connected to my mobile then why i'm not getting is connected status true? what i'm doing wrong?
can you help me to connect this device to my app or provide me the steps or code to connect this device?
Like I said before.
Paired is paired. Connected is an open socket.
Your devices is paired to the phone but not connected.
I don't know, you need to debug. I don't have your device or code.
I'm Trying to connect Bluetooth Barcode Scanner device in Android but not getting success.
I'm using OnePlus7T for testing
package.json
AndroidManifest.xml
build.gradle
1 ) call for getting unpaired device list and get the unpaired devices.
2 ) call
RNBluetoothClassic.accept({});
3 ) form unpaired device list i select Bluetooth Barcode Scanner device and try to pair
while calling above function i receive the pair popup for pair the device . after pair the devices my device is connected with bluetooth but when i'm calling the getConnectedDevice it's give me an error code: "EUNSPECIFIED"
When i try to connect device using below code it's also give me an error
how can i solve this error?