register method
Register a sampling package.
Implementation
void register(SamplingPackage package) {
_combinedSchemas = null;
_packages.add(package);
CarpDataTypes().add(package.samplingSchemes.dataTypes);
// register the package's device in the device registry
DeviceController().registerDevice(
package.deviceType,
package.deviceManager,
);
// call back to the package
package.onRegister();
}