# Functions

AddDevice adds a new Device to the Device Service and Core Metadata.
AddDeviceProfile adds a new DeviceProfile to the Device Service and Core Metadata.
AddRoute allows leveraging the existing internal web server to add routes specific to Device Service.
DeviceCommand retrieves the specific DeviceCommand instance from cache according to the Device name and Command name.
DeviceProfiles return all managed DeviceProfiles from cache.
DeviceResource retrieves the specific DeviceResource instance from cache according to the Device name and Device Resource name.
Devices return all managed Devices from cache.
DriverConfigs retrieves the driver specific configuration.
GetDeviceByName returns the Device by its name if it exists in the cache, or returns an error.
GetLoggingClient returns the logger.LoggingClient.
GetProfileByName returns the Profile by its name if it exists in the cache, or returns an error.
LoadCustomConfig uses the Config Processor from go-mod-bootstrap to attempt to load service's custom configuration.
RemoveDeviceByName removes the specified Device by name from the cache and ensures that the instance in Core Metadata is also removed.
RemoveDeviceProfileByName removes the specified DeviceProfile by name from the cache and ensures that the instance in Core Metadata is also removed.
No description provided by the author
SetDeviceOffline will call the SetDeviceOffline interface impl by the status manager.
SetDeviceOnline will call the SetDeviceOnline interface impl by the status manager.
UpdateDevice updates the Device in the cache and ensures that the copy in Core Metadata is also updated.
UpdateDeviceProfile updates the DeviceProfile in the cache and ensures that the copy in Core Metadata is also updated.