Process taking care of monitoring Supervision sessions that the ZPC initiated.
More...
Process taking care of monitoring Supervision sessions that the ZPC initiated.
◆ SUPERVISION_REPORT_TIMEOUT
| #define SUPERVISION_REPORT_TIMEOUT 8000 |
Default duration (ms) for a node to return a Supervision Report.
◆ SUPERVISION_SEND_DATA_EMERGENCY_TIMER
| #define SUPERVISION_SEND_DATA_EMERGENCY_TIMER 60000 |
◆ supervised_session_t
Object containing tracking information for a Supervision Session that the ZPC initiated and supervises
◆ zwave_command_class_supervision_events_t
Event definitions for the Z-Wave Command Class Supervision Process.
| Enumerator |
|---|
| ZWAVE_COMMAND_CLASS_SUPERVISION_START_TIMER | Start a timer for a Supervised session.
|
◆ PROCESS_NAME()
| PROCESS_NAME |
( |
zwave_command_class_supervision_process |
| ) |
|
Name the of contiki process for the Supervision Command Class.
This is used to register the name of the Supervision Command Clas Process.
◆ zwave_command_class_supervision_assign_session_tx_id()
Assigns a Z-Wave TX Session ID to a supervision Session ID.
- Parameters
-
| supervision_id | The Supervision ID to find among the supervised sessions. |
| tx_session_id | The Z-Wave Tx session ID to associate to the Supervision Session ID |
- Returns
- sl_status_t indicating if the session ID was found and associated.
- SL_STATUS_OK if the session was found and associated
- SL_STATUS_NOT_FOUND if the session was not found
◆ zwave_command_class_supervision_close_session()
Closes a supervised session.
- Parameters
-
| supervision_id | The unique Supervision Session ID to find among the supervised sessions. |
- Returns
- sl_status_t indicating if the session was closed.
- SL_STATUS_OK if the session was found and closed
- SL_STATUS_NOT_FOUND if the session was not found
◆ zwave_command_class_supervision_create_session()
Creates a new supe a supervised session.
- Parameters
-
| connection | Connection info received for the supervision session |
| tx_options | Tx options received for the supervision session |
| callback | User callback function for when the supervision reports statuses. Refer to on_zwave_tx_send_data_complete_t |
| user | User pointer to pass to the callback function. |
- Returns
- supervision_id_t Unique handle for the Session ID INVALID_SUPERVISION_ID in case of error / multicast transmission
◆ zwave_command_class_supervision_find_session()
Retrieves a supervised session based on its ID.
- Parameters
-
| session_id | The Supervision Session ID to find among the supervised sessions. |
| node_id | |
| endpoint_id | |
- Returns
- supervised_session_t Pointer of the found supervised session if the ID is found
- NULL If the Session ID is not supervised.
- Note
- : be careful with the pointer, do not call zwave_command_class_supervision_create_session or zwave_command_class_supervision_close_session while reading or writing using the returned pointer.
◆ zwave_command_class_supervision_find_session_by_unique_id()
◆ zwave_command_class_supervision_process_log()
| void zwave_command_class_supervision_process_log |
( |
| ) |
|
Logs the state of the Supervision process, with sessions and timers.