
Typedefs | |
| typedef enum zb_bdb_comm_binding_cb_state_e | zb_bdb_comm_binding_cb_state_t |
| typedef zb_bool_t(* | zb_bdb_comm_binding_callback_t) (zb_int16_t status, zb_ieee_addr_t addr, zb_uint8_t ep, zb_uint16_t cluster) |
| BDB finding and binding callback template. More... | |
Enumerations | |
| enum | zb_bdb_comm_binding_cb_state_e { ZB_BDB_COMM_BIND_SUCCESS = 0, ZB_BDB_COMM_BIND_FAIL = 1, ZB_BDB_COMM_BIND_ASK_USER = 2 } |
Functions | |
| zb_ret_t | zb_bdb_finding_binding_target (zb_uint8_t endpoint) |
| Starts EZ-Mode finding and binding procedure on the target's endpoint. More... | |
| zb_ret_t | zb_bdb_finding_binding_target_ext (zb_uint8_t endpoint, zb_uint16_t commissioning_time_secs) |
| Starts EZ-Mode finding and binding procedure on the target's endpoint with a given timeout. More... | |
| zb_ret_t | zb_bdb_finding_binding_initiator (zb_uint8_t endpoint, zb_bdb_comm_binding_callback_t user_binding_cb) |
| Starts BDB finding and binding procedure on the initiator. More... | |
| void | zb_bdb_finding_binding_target_cancel (void) |
| Cancels previously started finding and binding procedure on all target endpoints. More... | |
| void | zb_bdb_finding_binding_target_cancel_ep (zb_uint8_t endpoint) |
| Cancels previously started finding and binding procedure on the particular target endpoint. More... | |
| void | zb_bdb_finding_binding_initiator_cancel (void) |
| Cancel previously started finding and binding procedure on initiator. More... | |
| typedef zb_bool_t( * zb_bdb_comm_binding_callback_t) (zb_int16_t status, zb_ieee_addr_t addr, zb_uint8_t ep, zb_uint16_t cluster) |
BDB finding and binding callback template.
Callback is used both to interact with user application
and get decision if new binding is needed or not, and to report the binding result
| [in] | status | - status of the binding (ask user, success or fail) zb_bdb_comm_binding_cb_state_t |
| [in] | addr | - extended address of a device to bind |
| [in] | ep | - endpoint of a device to bind |
| [in] | cluster | - cluster ID to bind |
| ZB_TRUE | - create a binding entry for the cluster |
| ZB_FALSE | - ignore the cluster and do not create a binding entry |
List of EZ-Mode binding callback states
| zb_ret_t zb_bdb_finding_binding_initiator | ( | zb_uint8_t | endpoint, |
| zb_bdb_comm_binding_callback_t | user_binding_cb | ||
| ) |
Starts BDB finding and binding procedure on the initiator.
This function calls the provided user callback to report the procedure status and to allow the application to skip binding of some clusters.
It may be called several times with Success status and only once with Error status.
If any error appears, finding and binding stops.
| [in] | endpoint | - initiator endpoint |
| [in] | user_binding_cb | - user callback, see zb_bdb_comm_binding_callback_t() |
| RET_OK | - on success |
| RET_INVALID_PARAMETER_1 | - endpoint is not registered |
| RET_INVALID_STATE | - device is not joined to the network |
| RET_BUSY | - commissioning is in progress |
| void zb_bdb_finding_binding_initiator_cancel | ( | void | ) |
Cancel previously started finding and binding procedure on initiator.
| zb_ret_t zb_bdb_finding_binding_target | ( | zb_uint8_t | endpoint | ) |
Starts EZ-Mode finding and binding procedure on the target's endpoint.
This function puts the device into the identifying mode. Default duration is 3 minutes.
| [in] | endpoint | - target endpoint |
| RET_OK | - on success |
| RET_INVALID_PARAMETER_1 | - target endpoint is not registered |
| RET_INVALID_STATE | - finding and binding has already started or the device is not joined |
endpoint should be registered on the target.| void zb_bdb_finding_binding_target_cancel | ( | void | ) |
Cancels previously started finding and binding procedure on all target endpoints.
| void zb_bdb_finding_binding_target_cancel_ep | ( | zb_uint8_t | endpoint | ) |
Cancels previously started finding and binding procedure on the particular target endpoint.
| [in] | endpoint | - target endpoint. The ZB_ZCL_BROADCAST_ENDPOINT value is treated as cancel on all target endpoints. |
| zb_ret_t zb_bdb_finding_binding_target_ext | ( | zb_uint8_t | endpoint, |
| zb_uint16_t | commissioning_time_secs | ||
| ) |
Starts EZ-Mode finding and binding procedure on the target's endpoint with a given timeout.
| [in] | endpoint | - target endpoint |
| [in] | commissioning_time_secs | - time interval for the device to be in the identifying mode, in seconds. Can't be less than 3 minutes. |
| RET_OK | - on success |
| RET_INVALID_PARAMETER_1 | - target endpoint is not registered |
| RET_INVALID_PARAMETER_2 | - commissioning_time_secs is less than ZB_BDBC_MIN_COMMISSIONING_TIME_S |
| RET_INVALID_STATE | - finding and binding procedure has already started or the device is not joined |