|
Developing with ZBOSS for Zigbee
|
◆ ZB_BIND_DST_ADDR_MODE_16_BIT_GROUP
#define ZB_BIND_DST_ADDR_MODE_16_BIT_GROUP 0x01U |
16-bit group address for DstAddress and DstEndp not present
◆ ZB_BIND_DST_ADDR_MODE_64_BIT_EXTENDED
#define ZB_BIND_DST_ADDR_MODE_64_BIT_EXTENDED 0x03U |
64-bit extended address for DstAddress and DstEndp present
◆ zb_bind_dst_addr_mode_t
◆ zb_end_device_bind_req_param_t
Parameters for End_Device_Bind_req.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_bind_req_head_t
Bind_req request head send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_param_t
Parameters for Bind_req API call.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_tail_1_t
Bind_req request tail 1st variant send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_bind_req_tail_2_t
Bind_req request tail 2nd variant send to the remote.
- See also
- ZB spec, subclause 2.4.3.2.2.
◆ zb_zdo_end_device_bind_req_head_t
End_Device_Bind_req command head.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_end_device_bind_req_tail_t
End_Device_Bind_req command head.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_end_device_bind_resp_t
Response from End_Device_Bind_req.
- See also
- ZB spec, subclause 2.4.3.2.1.
◆ zb_zdo_mgmt_bind_param_t
Parameters for Mgmt_Bind_req.
- See also
- ZB spec, subclause 2.4.3.3.4.
◆ zb_zdo_mgmt_bind_req_t
Request for Mgmt_Bind_req.
- See also
- ZB spec, subclause 2.4.3.3.4.
◆ zb_zdo_mgmt_bind_resp_t
Response for Mgmt_Bind_rsp.
- See also
- ZB spec, subclause 2.4.4.3.4.
◆ zb_end_device_bind_req()
sends 2.4.3.2.1 End_Device_Bind_req command
- Parameters
-
param | - index of buffer with request |
cb | - user's function to call when got response from the remote. |
- Returns
- ZDP transaction sequence number or
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
◆ zb_zdo_bind_req()
Bind_req request.
- Parameters
-
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
Example:
{
TRACE_MSG(TRACE_APP2,
">> bind_device param %hd", (FMT__H, param));
if (dev_idx != SIMPLE_GW_INVALID_DEV_INDEX)
{
req->
src_endp = g_device_ctx.devices[dev_idx].endpoint;
req->
req_dst_addr = g_device_ctx.devices[dev_idx].short_addr;
}
else
{
TRACE_MSG(TRACE_APP2,
"No devices in binding configuration state were found!", (FMT__0));
}
TRACE_MSG(TRACE_APP2,
"<< bind_device", (FMT__0));
}
{
{
zb_uint8_t dev_idx = simple_gw_get_dev_index_by_state(CONFIGURE_BINDING);
if (dev_idx != SIMPLE_GW_INVALID_DEV_INDEX)
{
g_device_ctx.devices[dev_idx].dev_state = CONFIGURE_REPORTING;
param = 0;
}
}
if (param)
{
}
}
◆ zb_zdo_mgmt_bind_req()
Sends Mgmt_Bind_req request.
- Parameters
-
param | reference to the buffer to put request data to. |
cb | callback to be called on operation finish. |
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
◆ zb_zdo_unbind_req()
Unbind_req request.
- Parameters
-
- Returns
- ZDP transaction sequence number
-
0xFF if operation cannot be performed now (nor enough memory, resources, etc.)
Example:
{
TRACE_MSG(TRACE_COMMON1,
"unbind_device_1", (FMT__0));
bind_param->
cluster_id = TP_BUFFER_TEST_REQUEST_CLID;
}
{
TRACE_MSG(TRACE_COMMON1,
"unbind_device1_cb resp status %hd", (FMT__H, bind_resp->
status));
{
TRACE_MSG(TRACE_COMMON1,
"Error bind device 1. Test status failed", (FMT__0));
}
zb_free_buf(buf);
}
◆ zdo_mgmt_bind_resp()
Sends 2.4.4.3.4 Mgmt_Bind_rsp.
- Parameters
-
param | - index of buffer with Mgmt_Bind request |
zb_uint16_t cluster_id
Definition: zboss_api_zdo.h:2303
Parameters for Bind_req API call.
Definition: zboss_api_zdo.h:2299
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:153
#define ZB_SCHEDULE_APP_CALLBACK2(func, param, user_param)
Definition: zboss_api_core.h:348
#define TRACE_MSG(lm, fmts, args)
Put trace output.
Definition: zb_trace.h:359
#define ZB_ZCL_CLUSTER_ID_ON_OFF
Definition: zb_zcl_common.h:212
#define zb_buf_initial_alloc(buf, size)
Initial data space allocation in buffer.
Definition: zboss_api_buf.h:383
zb_uint16_t req_dst_addr
Definition: zboss_api_zdo.h:2314
zb_ieee_addr_t src_address
Definition: zboss_api_zdo.h:2301
#define ZB_BUF_GET_PARAM(buf, type)
Definition: zboss_api_buf.h:447
zb_uint8_t zb_zdo_unbind_req(zb_uint8_t param, zb_callback_t cb)
Unbind_req request.
zb_uint8_t zb_zdo_bind_req(zb_uint8_t param, zb_callback_t cb)
Bind_req request.
#define ZB_APS_ADDR_MODE_64_ENDP_PRESENT
Definition: zboss_api_aps.h:108
zb_uint8_t dst_endp
Definition: zboss_api_zdo.h:2308
#define ZB_ZDP_STATUS_SUCCESS
Definition: zboss_api_zdo.h:41
#define zb_buf_begin(buf)
Definition: zboss_api_buf.h:343
zb_64bit_addr_t zb_ieee_addr_t
Long (64-bit) device address.
Definition: zb_types.h:554
zb_uint8_t status
Definition: zboss_api_zdo.h:2361
zb_addr_u dst_address
Definition: zboss_api_zdo.h:2306
Response by Bind_req.
Definition: zboss_api_zdo.h:2358
unsigned short zb_uint16_t
Project-local 2-byte unsigned int type.
Definition: zb_types.h:157
zb_uint8_t dst_addr_mode
Definition: zboss_api_zdo.h:2305
#define zb_buf_free(buf)
Free packet buffer and put it into free list.
Definition: zboss_api_buf.h:333
zb_uint16_t zb_address_short_by_ieee(zb_ieee_addr_t ieee_address)
zb_uint8_t zb_bufid_t
Definition: zboss_api_buf.h:172
zb_uint8_t src_endp
Definition: zboss_api_zdo.h:2302
void zb_get_long_address(zb_ieee_addr_t addr)