Свойство | Type | Description | |
---|---|---|---|
DcClient | IFrameworkClient |
Méthode | Description | |
---|---|---|
Connect ( ) : bool |
Connects device to network This function should be called by implementers to make the device connect to DeviceHive network. |
|
Init ( ) : bool |
Initializes the device This function should be called by implementers before any calls to other DeveiceEngine's functions. |
|
ProcessCommands ( ) : bool |
Default command processing This function performs a default command processing, including handling equipment commands and firing events. It should be invoked by implementers to perform a single command processing loop. So, it should be ran continuously. |
|
SendNotification ( INotification notification ) : bool |
Sends a notification to the DeviceHive network This function can be used by implementers to send device-specific notifications. |
Méthode | Description | |
---|---|---|
CreateDeviceData ( ) : |
This function should be overridden by implementers to return a specific DeviceData structure.
|
|
CreateEquipment ( ) : void |
Initializes device equipment structure This function should be overridden by implementers to construct device equipment and fill DeviceData equipment hashtable with equipment. This function is invoked after the device has connected to data network and registered itself. Normally, the constructed equipment should be initialized and send its status to DeviceHive network. |
Méthode | Description | |
---|---|---|
FindDevice ( string code ) : |
Locates an equipment by a specified code
|
|
RegisterEquipment ( ) : bool |
Registers all equipment in DeviceHive network
|
|
UnregisterEquipment ( ) : bool |
Unregisters equipment
|
protected abstract CreateDeviceData ( ) : |
||
Résultat |
protected abstract CreateEquipment ( ) : void | ||
Résultat | void |
public SendNotification ( INotification notification ) : bool | ||
notification | INotification | Notification to be sent |
Résultat | bool |