Skip to content

AltBeacon

A beacon meeting the open AltBeacon standard.

A connected device that provides CarpDataTypes.SIGNAL_STRENGTH data. Optional by default, with role name 'Beacon'. Registered with an AltBeaconDeviceRegistration.

Inheritance
Annotations

Constructors

AltBeacon.fromJson

AltBeacon.fromJson(
  1. Map<String, dynamic> json
)

AltBeacon

AltBeacon({
  1. String roleName = 'Beacon',
})

Properties

dataTypeSamplingSchemes

DataTypeSamplingSchemeMap? get dataTypeSamplingSchemes
override

Sampling schemes for all the sensors available on this device.

Implementations of DeviceConfiguration should return a map of all supported sampling schemes here. Null in this base class.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

createRegistration

AltBeaconDeviceRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. int? manufacturerId,
  4. String? organizationId,
  5. int? majorId,
  6. int? minorId,
  7. int? referenceRssi,
})
override

Create a DeviceRegistration which can be used to configure this device for deployment.

Override this method to configure device-specific registration options, if any.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.