simulateMacChange
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:
0b10is reserved for future use and should not be used.0b11- AddressType.RANDOM_STATICany value for AddressType.PUBLIC
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.