BleProfile class

All services are exposed over GATT. Only advertisedServiceUuid is placed in advertisements, keeping the default compatible with legacy BLE packets. Name advertisement is best effort unless requireAdvertisedName is set.

Constructors

BleProfile({required List<BleService> services, String? advertisedServiceUuid, String? name, bool requireAdvertisedName = false, bool allowAndroidAdapterNameChange = false})
Validates services, unique UUIDs and platform-independent naming limits.

Properties

advertisedServiceUuid → String
The single service UUID included in discovery advertisements.
final
allowAndroidAdapterNameChange → bool
Android has no per-advertisement name setter. Explicitly permits changing the system adapter name while running. Restoration is best effort.
final
fields → Iterable<BleField>
All characteristic definitions across the profile's services.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String?
Requested logical server name, limited to 29 UTF-8 bytes.
final
requireAdvertisedName → bool
Fail rather than omit a requested name on an unsupported platform. The OS can still shorten or suppress names (e.g. iOS in background).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
services → List<BleService>
Immutable list of services to expose to connected clients.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited