Skip to content

DeviceConnection

A connection from a connected device to a primary device in a StudyProtocol.

Created by StudyProtocol.addConnectedDevice.

Annotations

Constructors

DeviceConnection.fromJson

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

DeviceConnection

DeviceConnection([
  1. String? roleName,
  2. String? connectedToRoleName
])

Properties

connectedToRoleName

String? connectedToRoleName
getter/setter pair

Role name of the primary device that roleName connects to.

roleName

String? roleName
getter/setter pair

Role name of the connected device.

Methods

toJson

Map<String, dynamic> toJson()