AddressType

Represents the type of Bluetooth address.

Every Bluetooth LE device is identified by a unique 48-bit address. Bluetooth addresses are categorized as either public or random. Random addresses are further classified as either static or private, depending on whether they change or not. And lastly, private addresses are either resolvable or non-resolvable. The image below shows how Bluetooth addresses are categorized.

Note that random and private addresses are merely classification types and not actual address types.

Learn more at DevAcademy.

Entries

Link copied to clipboard

A public address is a fixed address that is programmed into the device at the manufacturer.

Link copied to clipboard

A random static address.

Link copied to clipboard

A Resolvable Private Address (RPA) is resolvable as intended listeners have a pre-shared key by which they can figure out the new address every time it changes.

Link copied to clipboard

A non-resolvable private address is not resolvable by other devices and is only intended as a way to prevent tracking. This type of address is not commonly used.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.