BluetoothDevice.fromId constructor

BluetoothDevice.fromId(
  1. String remoteId
)

Create a device from an id

  • to connect, this device must have been discovered by your app in a previous scan
  • iOS uses 128-bit uuids the remoteId, e.g. e006b3a7-ef7b-4980-a668-1f8005f84383
  • Android uses 48-bit mac addresses as the remoteId, e.g. 06:E5:28:3B:FD:E0

Implementation

BluetoothDevice.fromId(String remoteId) : remoteId = DeviceIdentifier(remoteId);