|
Eris Linux A.P.I. 0.1
API to access Eris Linux system from a custom container
|
Functions to contact the Device Manager. More...
Functions | |
| int | eris_contact_server (void) |
| Ask the device to contact the server immediately. | |
| int | eris_get_server_contact_period (void) |
| Get the period in seconds that the device waits between contacts with the server. | |
| int | eris_set_server_contact_period (int period) |
| Set the period in seconds that the device waits between contacts with the server. | |
Functions to contact the Device Manager.
| int eris_contact_server | ( | void | ) |
Ask the device to contact the server immediately.
Asking to explicitly contact the server is especially usefull when the period of contact is zero. Another use case is to report a new condition on a container for example.
| int eris_get_server_contact_period | ( | void | ) |
Get the period in seconds that the device waits between contacts with the server.
If the period is 0, the device will contact the server only when explicitly asked by eris_contact_server() method.
| int eris_set_server_contact_period | ( | int | period | ) |
Set the period in seconds that the device waits between contacts with the server.
| perido | the period between contact in seconds. |
If period is 0, the device will contact the server only when explicitly asked by eris_contact_server().