Skip to content

MovesenseDeviceInformation

Information about a Movesense device and the firmware running on it.

Holds the hardware version, serial number, software version and similar. Collected by MovesenseDeviceProbe for the MovesenseSamplingPackage.DEVICE_INFO measure.

See https://www.movesense.com/docs/esw/api_reference/#info

Inheritance
Annotations

Constructors

MovesenseDeviceInformation.fromJson

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

MovesenseDeviceInformation.fromMovesenseData

MovesenseDeviceInformation.fromMovesenseData(
  1. dynamic data
)

Creates device information from the decoded JSON response of the device's /Info resource.

MovesenseDeviceInformation

MovesenseDeviceInformation([
  1. String? manufacturerName,
  2. String? brandName,
  3. String? productName,
  4. String? variant,
  5. String? design,
  6. String? hardwareCompatibilityId,
  7. String? serial,
  8. String? pcbaSerial,
  9. String? softwareVersion,
  10. String? hardwareType,
  11. String? additionalVersionInfo,
  12. String? apiLevel,
  13. String? address,
])

Properties

additionalVersionInfo

String? additionalVersionInfo
getter/setter pair

address

String? address
getter/setter pair

The BLE address of the device.

apiLevel

String? apiLevel
getter/setter pair

brandName

String? brandName
getter/setter pair

design

String? design
getter/setter pair

fromJsonFunction

Function get fromJsonFunction
override

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

hardwareCompatibilityId

String? hardwareCompatibilityId
getter/setter pair

hardwareType

String? hardwareType
getter/setter pair

The hardware type ("hw"), like "A1" for the MD. See MovesenseDeviceType.

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

manufacturerName

String? manufacturerName
getter/setter pair

pcbaSerial

String? pcbaSerial
getter/setter pair

productName

String? productName
getter/setter pair

serial

String? serial
getter/setter pair

softwareVersion

String? softwareVersion
getter/setter pair

variant

String? variant
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.