initializeDevice method
void
initializeDevice(
- DeviceConfiguration<
DeviceRegistration> configuration
Initialize the device specified in the configuration
.
Implementation
void initializeDevice(DeviceConfiguration configuration) {
if (deviceRegistry.hasDevice(configuration.type)) {
deviceRegistry.devices[configuration.type]?.initialize(configuration);
} else {
warning(
"A device of type '${configuration.type}' is not available on this device. "
"This may be because this device is not available on this operating system. "
"Or it may be because the sampling package containing this device has not been "
"registered in the SamplingPackageRegistry.");
}
}