|
Developing with ZBOSS for Zigbee
|
◆ zb_tc_auth_device_after_interview()
Authenticates device after Device Interview.
- See also
- ZB_ZDO_SIGNAL_DEVICE_INTERVIEW_FINISHED
- Parameters
-
device_addr | - address of the device to authenticate |
{
TRACE_MSG(TRACE_ERROR,
"ERROR zboss_start failed", (FMT__0));
}
else
{
}
{
TRACE_MSG(TRACE_APP1,
"ZB_ZDO_SIGNAL_DEVICE_READY_FOR_INTERVIEW, short_addr 0x%x, ieee_addr " TRACE_FORMAT_64,
(FMT__D_A, dev_interview_params->short_addr, TRACE_ARG_64(dev_interview_params->
long_addr)));
if (ZB_IEEE_ADDR_CMP(dev_interview_params->
long_addr, g_r23_zed_ieee_addr))
{
TRACE_MSG(TRACE_APP1,
"Start device interview for 0x%x", (FMT__D, dev_interview_params->short_addr));
app_start_device_interview(param, dev_interview_params->short_addr);
param = ZB_UNDEFINED_BUFFER;
}
else
{
TRACE_MSG(TRACE_APP1,
"Authenticate device 0x%x without interview", (FMT__D, dev_interview_params->short_addr));
param = ZB_UNDEFINED_BUFFER;
}
break;
}
{
TRACE_MSG(TRACE_APP1,
"ZB_ZDO_SIGNAL_DEVICE_INTERVIEW_FINISHED, status %hd", (FMT__H, status));
break;
}
{
{
{
TRACE_MSG(TRACE_APP1,
"device authorized " TRACE_FORMAT_64, (FMT__A, TRACE_ARG_64(ieee_addr)));
}
}
}
◆ zb_tc_enable_device_interview()
void zb_tc_enable_device_interview |
( |
zb_bool_t |
enable | ) |
|
Enables Device Interview stage.
- Parameters
-
enable | - flag that shows whether device interview should be enabled Default value - ZB_FALSE, the stage is disabled |
- See also
- ZB_ZDO_SIGNAL_DEVICE_READY_FOR_INTERVIEW.
{
TRACE_MSG(TRACE_ERROR,
"ERROR zboss_start failed", (FMT__0));
}
else
{
}
{
TRACE_MSG(TRACE_APP1,
"ZB_ZDO_SIGNAL_DEVICE_READY_FOR_INTERVIEW, short_addr 0x%x, ieee_addr " TRACE_FORMAT_64,
(FMT__D_A, dev_interview_params->short_addr, TRACE_ARG_64(dev_interview_params->
long_addr)));
if (ZB_IEEE_ADDR_CMP(dev_interview_params->
long_addr, g_r23_zed_ieee_addr))
{
TRACE_MSG(TRACE_APP1,
"Start device interview for 0x%x", (FMT__D, dev_interview_params->short_addr));
app_start_device_interview(param, dev_interview_params->short_addr);
param = ZB_UNDEFINED_BUFFER;
}
else
{
TRACE_MSG(TRACE_APP1,
"Authenticate device 0x%x without interview", (FMT__D, dev_interview_params->short_addr));
param = ZB_UNDEFINED_BUFFER;
}
break;
}
{
TRACE_MSG(TRACE_APP1,
"ZB_ZDO_SIGNAL_DEVICE_INTERVIEW_FINISHED, status %hd", (FMT__H, status));
break;
}
{
{
{
TRACE_MSG(TRACE_APP1,
"device authorized " TRACE_FORMAT_64, (FMT__A, TRACE_ARG_64(ieee_addr)));
}
}
}
◆ zb_tc_is_device_interview_enabled()
zb_bool_t zb_tc_is_device_interview_enabled |
( |
void |
| ) |
|
Checks whether Device Interview is enabled
- Returns
- Device Interview status
◆ zb_tc_is_interview_active_for_device()
Checks whether Device Interview is active for a device.
- Parameters
-
device_addr | - address of the device |
◆ zb_tc_reject_device_after_interview()
void zb_tc_reject_device_after_interview |
( |
const zb_ieee_addr_t |
device_addr | ) |
|
#define TRACE_MSG(lm, fmts, args)
Put trace output.
Definition: zb_trace.h:369
zb_uint8_t status
Definition: zboss_api_zdo.h:4082
Device Ready For Interview signal parameters.
Definition: zboss_api_zdo.h:1377
void zboss_main_loop(void)
#define ZB_TRUE
Definition: zb_types.h:350
zb_ieee_addr_t long_addr
Definition: zboss_api_zdo.h:1380
#define ZB_ZDO_SIGNAL_DEVICE_READY_FOR_INTERVIEW
Definition: zboss_api_zdo.h:815
zb_ret_t zb_address_ieee_by_short(zb_uint16_t short_addr, zb_ieee_addr_t ieee_address)
#define ZB_ZDP_STATUS_SUCCESS
Definition: zboss_api_zdo.h:41
void zb_tc_enable_device_interview(zb_bool_t enable)
#define ZB_ZDO_SIGNAL_DEVICE_INTERVIEW_FINISHED
Definition: zboss_api_zdo.h:944
zb_64bit_addr_t zb_ieee_addr_t
Long (64-bit) device address.
Definition: zb_types.h:535
#define RET_OK
Error codes for non-void stack functions. In general, function can return OK, BLOCKED or some error....
Definition: zb_errors.h:79
zb_ret_t zb_tc_auth_device_after_interview(const zb_ieee_addr_t device_addr)
#define ZB_ZDO_SIGNAL_GET_PARAMS(sg_p, type)
Definition: zboss_api_zdo.h:1109
zb_ret_t zboss_start_no_autostart(void)