addDevice method

void addDevice(
  1. String id, {
  2. String variant = 'fd-vp-f-1',
  3. String address = '10.0.0.20:50063',
})

Adds a visual device agent (as discovered by the media server's device adapter).

Implementation

void addDevice(
  String id, {
  String variant = 'fd-vp-f-1',
  String address = '10.0.0.20:50063',
}) => _devicesById[id] = {
  'id': id,
  'serial': 'SN-$id',
  'product': 'FreeDome visual projector',
  'variant': variant,
  'agentVersion': '1.0.0',
  'protocolVersion': 'freedome.device.v1',
  'capabilities': ['power', 'identify', 'pattern'],
  'address': address,
  'paired': false,
  'displayId': null,
  'state': {'online': true, 'power': 'on'},
};