Zigbee Protocol Controller 1.6.0
zigpc_net_mgmt.c File Reference
#include <string.h>
#include <stdio.h>
#include <sys/ctimer.h>
#include <sl_status.h>
#include <sl_log.h>
#include <zigpc_common_zigbee.h>
#include <zigpc_gateway.h>
#include "zigpc_net_mgmt.h"
#include "zigpc_net_mgmt_internal.h"
#include "zigpc_net_mgmt_notify_int.h"
#include "zigpc_net_mgmt_process_send.h"

Functions

static void zigpc_netmgmt_permit_timer_expiry (void *ptr)
 zigpc_netmgmt_permit_timer_expiry Callback for the timer used to timeout a device add request Automatically closes the network to joins More...
 
sl_status_t zigpc_netmgmt_network_permit_joins (bool enable)
 Request to enable/disable permitting Zigbee devices to join the network. More...
 
sl_status_t zigpc_net_mgmt_add_node (const zigbee_eui64_t eui64, const zigbee_install_code_t install_code, const uint8_t install_code_length, bool is_well_known_key_add)
 Request to add a new end device to the Zigbee PAN. More...
 
sl_status_t zigpc_net_mgmt_remove_node (const zigbee_eui64_t eui64)
 Request to remove a node already on the network. This request can only be fullfilled if the FSM is in an idle state. The request, if successful, will transition the FSM to the "remove node" state. If the node is not on the network, or if the interview process has not completed, a node interview timeout will expire which will transition back the FSM to the idle state. More...
 
sl_status_t zigpc_net_mgmt_state_change_request (const zigpc_net_mgmt_state_change_request_t *action)
 Request a state change request external to Protocol Controller. This request is usually sent by the Unify MQTT facing components to manually transition to a particular network managment state to perform an action such as add node, remove node, etc. Passing the "idle" state to this request will abort any on-going requests. More...
 

Variables

static const char LOG_TAG [] = "zigpc_net_mgmt"
 
static struct ctimer permit_joins_timer
 
static const unsigned long permit_joins_timeout_period = 5*60*CLOCK_SECOND
 

Function Documentation

◆ zigpc_netmgmt_permit_timer_expiry()

static void zigpc_netmgmt_permit_timer_expiry ( void *  ptr)
static

zigpc_netmgmt_permit_timer_expiry Callback for the timer used to timeout a device add request Automatically closes the network to joins

Parameters
ptr- unused pointer

Variable Documentation

◆ LOG_TAG

const char LOG_TAG[] = "zigpc_net_mgmt"
static

◆ permit_joins_timeout_period

const unsigned long permit_joins_timeout_period = 5*60*CLOCK_SECOND
static

◆ permit_joins_timer

struct ctimer permit_joins_timer
static