Method | Description | |
---|---|---|
EquipmentEngine ( |
Constricts an equipment for the specififed parent device
|
|
OnCommand ( |
Executes an equipment commmand Implementers should override this function with an equipment-specific command code. Common approact is to check the command code and perform actions accordingly |
|
Register ( ) : bool |
Registers the equipment When the device initializes, it initializes all the equipment it has. By overriding this function an equipment can provide custom initialization steps. |
|
SendNotification ( string DataName, object DataValue ) : bool |
Common functionality for sending equipment notifications Implementers can use this functuions in their custom code to notify of equipment value changes. |
|
Unregister ( ) : bool |
Unregisters the equipment When the device is disconnected from the network or enters the fault state, it tries to unregister all its equipment. Implementers should override this function to provide custon uninitialization steps (closing files or handles, stopping timers, etc.). |
public EquipmentEngine ( |
||
dev | Device for which the equipment is created | |
return | Microsoft.SPOT |
public abstract OnCommand ( |
||
cmd | Command data structure | |
return | bool |
public SendNotification ( string DataName, object DataValue ) : bool | ||
DataName | string | Name of the equipment |
DataValue | object | New value of the equipment |
return | bool |