BlueZGattCharacteristic class
A characteristic of a GATT service.
Constructors
- BlueZGattCharacteristic(BlueZClient _client, _BlueZObject _object)
Properties
-
descriptors
→ List<
BlueZGattDescriptor> -
The Gatt descriptors provided by this characteristic.
no setter
-
flags
→ Set<
BlueZGattCharacteristicFlag> -
Defines how this characteristic value can be used.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mtu → int?
-
Get mtu value of this characteristic
no setter
- notifyAcquired → bool
-
True if if this characteristic has been acquired by any client using acquireNotify.
no setter
- notifying → bool
-
True, if notifications or indications on this characteristic are currently enabled.
no setter
-
propertiesChanged
→ Stream<
List< String> > -
Stream of property names as their values change.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → BlueZUUID
-
Unique ID for this characteristic.
no setter
-
value
→ List<
int> -
Cached value of this characteristic, updated when readValue is called or in a notification session triggered by startNotify.
no setter
- writeAcquired → bool
-
True if if this characteristic has been acquired by any client using acquireWrite.
no setter
Methods
-
acquireNotify(
) → Future< BlueZGattAcquireNotifyResult> - Acquire a RawSocket for receiving notifications from this characterisitic. To release the lock close the returned socket.
-
acquireWrite(
) → Future< BlueZGattAcquireWriteResult> - Acquire a RawSocket for writing to this characterisitic. Usage of writeValue will be locked causing it to return NotPermitted error. To release the lock close the returned file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readValue(
{int? offset}) → Future< List< int> > - Reads the value of the characteristic.
-
startNotify(
) → Future< void> - Starts a notification session from this characteristic if it supports value notifications or indications.
-
stopNotify(
) → Future< void> - Cancel any previous startNotify transaction. Note that notifications from a characteristic are shared between sessions thus calling stopNotify will release a single session.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeValue(
Iterable< int> data, {int? offset, BlueZGattCharacteristicWriteType? type, bool? prepareAuthorize}) → Future<void> -
Writes
data
to the characteristic.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited