BlePeripheralService class

Peripheral/GATT server service model that reuses BleService.

This extends BleService with peripheral-only fields such as primary.

Inheritance
Available extensions

Constructors

BlePeripheralService({bool primary = true, required String uuid, required List<BlePeripheralCharacteristic> characteristics})
BlePeripheralService.fromJson(Map<String, dynamic> json)
factory

Properties

characteristics ↔ List<BlePeripheralCharacteristic>
getter/setter pairinherited-setteroverride-getter
hashCode → int
The hash code for this object.
no setterinherited
primary ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uuid ↔ String
getter/setter pairinherited

Methods

getCharacteristic(String characteristicId) → BleCharacteristic

Available on BleService, provided by the BleServiceExtension extension

Retrieves a BleCharacteristic from the service by its UUID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toPeripheralService() → PeripheralService
toString() → String
A string representation of this object.
inherited

Operators

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