simulateMacChange

fun simulateMacChange(newIdentifier: ID, addressType: AddressType)

Simulates a change of the peripheral identifier (Device Address).

This will be applied only if the peripheral is not connected.

Note, that if the identifier is the Bluetooth Device Address, the 2 most significant bits should match the addressType:

See Bluetooth Core Specification v6.2, Vol 6, Part B, Section 1.3 Device address: link.

Parameters

newIdentifier

The new peripheral identifier.

addressType

The new address type.