Skip to content

Can not connect an iOS to an Android device  #2

@dittmarconsulting

Description

@dittmarconsulting

Love both libraries (Rusel's and yours)

Everything works find on Android but I have issues connecting to an Android device. To be safe I have paired both devices manually beforehand.

I have the UUID (i.e. '00001103-0000-1000-8000-00805f9b34fb') but I'm not able to connect to the Android device running your lib on an iOS device (iPhone 8, iOS12, Xcode10)

In essence I'm running the following function

import BluetoothSerial from 'react-native-bluetooth-serial'

const connect = async (btId) => {
    return await BluetoothSerial.connect('00001103-0000-1000-8000-00805f9b34fb')
}

Any idea what the problem might be? I've had a look at the Objective-C code but everything looks fine to me.

Here the log:

2018-10-03 12:34:47.267357+1000 btTestApp[728:288833] connect
2018-10-03 12:34:47.267395+1000 btTestApp[728:288833] Scanning for BLE Peripherals
2018-10-03 12:34:47.267760+1000 btTestApp[728:288833] scanForPeripheralsWithServices
2018-10-03 12:34:50.268846+1000 btTestApp[728:288833] Stopped Scanning
2018-10-03 12:34:50.268951+1000 btTestApp[728:288833] Known peripherals : 0
2018-10-03 12:34:50.269035+1000 btTestApp[728:288833] List of currently known peripherals :
2018-10-03 12:34:50.269150+1000 btTestApp[728:288833] Could not find peripheral (null).
2018-10-03 12:34:50.343835+1000 btTestApp[728:288833] disconnect

By the way, both devices use classic BT NOT BLE

Many thanks in advance.
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions