addPrimaryDevice method
Add a primary device (e.g., a phone) which is responsible for aggregating and synchronizing incoming data. Its role name should be unique in the protocol.
Returns true if the primaryDevice
has been added; false if it is already
set as a primary device.
Implementation
@override
bool addPrimaryDevice(PrimaryDeviceConfiguration primaryDevice) {
super.addPrimaryDevice(primaryDevice);
_addSamplingTaskControl(primaryDevice);
return true;
}