createUnsafePeripheral abstract method

Peripheral createUnsafePeripheral(
  1. String peripheralId, {
  2. String? name,
})

Creates a peripheral which may not exist or be available. Since the peripheralId might be a UUID or a MAC address, depending on the platform, its format is not validated.

On iOS peripheralId is unique for a particular device and will not be recognized on any different device. On Android peripheralId scanned on one device may or may not be recognized on a different Android device depending on peripheral’s implementation and changes in future OS releases.

Implementation

Peripheral createUnsafePeripheral(String peripheralId, {String? name});