Skip to content

AltBeaconDeviceRegistration

A DeviceRegistration for AltBeacon specifying which beacon to listen to.

The beacon ID is 20 bytes, made up out of the recommended subdivision organizationId, majorId, and minorId.

Inheritance
Annotations

Constructors

AltBeaconDeviceRegistration.fromJson

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

AltBeaconDeviceRegistration

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

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

majorId

int? majorId
getter/setter pair

The first 2 bytes of the beacon identifier after the organizationId, commonly named major ID.

manufacturerId

int? manufacturerId
getter/setter pair

The beacon device manufacturer's company identifier code as maintained by the Bluetooth SIG assigned numbers database.

minorId

int? minorId
getter/setter pair

The last 2 bytes of the beacon identifier, commonly named minor ID.

organizationId

String? organizationId
getter/setter pair

The first 16 bytes of the beacon identifier which should be unique to the advertiser's organizational unit.

referenceRssi

int? referenceRssi
getter/setter pair

The average received signal strength at 1 meter from the beacon in decibel-milliwatts (dBm). This value is constrained from -127 to 0.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.