Skip to content

CamsDevice

Base class for CAMS connected-device configurations.

Extends the carp_core DeviceConfiguration and puts the JSON type in the CAMS device namespace CAMS_DEVICE_NAMESPACE, which is different from the carp_core device namespace. Sampling packages extend it (or BLEDevice / ServiceConfiguration) to define the devices they support.

Inheritance
Implementers

Constructors

CamsDevice

CamsDevice<TRegistration extends DeviceRegistration>({
  1. required String roleName,
  2. bool? isOptional,
})

Constants

CAMS_DEVICE_NAMESPACE

String const CAMS_DEVICE_NAMESPACE

The JSON type namespace of all CAMS devices and device registrations.

Properties

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.