C# 클래스 DeviceHive.CommonEquipment.TempSensor

Temperature sensor equipment
상속: EquipmentEngine
파일 보기 프로젝트 열기: devicehive/devicehive-.net-mf 1 사용 예제들

공개 메소드들

메소드 설명
GetTemperature ( ) : float

Gets current temperature

NotifyTemperature ( ) : bool

Sends temperature notification

OnCommand ( DeviceCommand cmd ) : bool

Performs a device command

This equipment does not support commands. It returns False regardless of input.

Register ( ) : bool

Registers the equipment

SendNotification ( float value ) : bool

Sends temperature notification

TempSensor ( DeviceEngine dev, string Code, ITempSensor sensor ) : System

Constructs a DeviceHive temperature sensor for a given sensor object

Unregister ( ) : bool

Unregisters the equipment

비공개 메소드들

메소드 설명
OnTimer ( object o ) : void

Timer for temperature measurement

메소드 상세

GetTemperature() 공개 메소드

Gets current temperature
public GetTemperature ( ) : float
리턴 float

NotifyTemperature() 공개 메소드

Sends temperature notification
public NotifyTemperature ( ) : bool
리턴 bool

OnCommand() 공개 메소드

Performs a device command
This equipment does not support commands. It returns False regardless of input.
public OnCommand ( DeviceCommand cmd ) : bool
cmd DeviceCommand Input command
리턴 bool

Register() 공개 메소드

Registers the equipment
public Register ( ) : bool
리턴 bool

SendNotification() 공개 메소드

Sends temperature notification
public SendNotification ( float value ) : bool
value float Temperature value
리턴 bool

TempSensor() 공개 메소드

Constructs a DeviceHive temperature sensor for a given sensor object
public TempSensor ( DeviceEngine dev, string Code, ITempSensor sensor ) : System
dev DeviceEngine Parent device
Code string Equipment code
sensor ITempSensor Temperature sensor
리턴 System

Unregister() 공개 메소드

Unregisters the equipment
public Unregister ( ) : bool
리턴 bool