C# Class Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.Cooler.Devices.CoolerDevice

Implementation of a specific device type that extends the BaseDevice functionality
Inheritance: Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.Devices.DeviceBase
Exibir arquivo Open project: Azure/azure-iot-remote-monitoring Class Usage Examples

Public Methods

Method Description
ChangeDeviceState ( string deviceState ) : Task
ChangeSetPointTemp ( double setPointTemp ) : void
CoolerDevice ( ILogger logger, ITransportFactory transportFactory, ITelemetryFactory telemetryFactory, IConfigurationProvider configurationProvider ) : System.Threading.Tasks
DiagnosticTelemetry ( bool active ) : void
StartTelemetryData ( ) : void
StopTelemetryData ( ) : void

Protected Methods

Method Description
InitCommandProcessors ( ) : void

Builds up the set of commands that are supported by this device

Method Details

ChangeDeviceState() public method

public ChangeDeviceState ( string deviceState ) : Task
deviceState string
return Task

ChangeSetPointTemp() public method

public ChangeSetPointTemp ( double setPointTemp ) : void
setPointTemp double
return void

CoolerDevice() public method

public CoolerDevice ( ILogger logger, ITransportFactory transportFactory, ITelemetryFactory telemetryFactory, IConfigurationProvider configurationProvider ) : System.Threading.Tasks
logger ILogger
transportFactory ITransportFactory
telemetryFactory ITelemetryFactory
configurationProvider IConfigurationProvider
return System.Threading.Tasks

DiagnosticTelemetry() public method

public DiagnosticTelemetry ( bool active ) : void
active bool
return void

InitCommandProcessors() protected method

Builds up the set of commands that are supported by this device
protected InitCommandProcessors ( ) : void
return void

StartTelemetryData() public method

public StartTelemetryData ( ) : void
return void

StopTelemetryData() public method

public StopTelemetryData ( ) : void
return void