메소드 | 설명 | |
---|---|---|
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
|
public OnCommand ( DeviceCommand cmd ) : bool | ||
cmd | DeviceCommand | Input command |
리턴 | bool |
public SendNotification ( float value ) : bool | ||
value | float | Temperature value |
리턴 | bool |
public TempSensor ( DeviceEngine dev, string Code, ITempSensor sensor ) : System | ||
dev | DeviceEngine | Parent device |
Code | string | Equipment code |
sensor | ITempSensor | Temperature sensor |
리턴 | System |