Zigbee Protocol Controller 1.6.0
zigpc_datastore::binding Namespace Reference

Functions

sl_status_t add_binding (zigbee_eui64_uint_t source, zigbee_binding_t binding)
 datastore::binding::add_binding Add a binding to the stored binding table of a given source address. Note, while the current implementation expects the source node to host the binding table, it is technically possible to store the binding table on a different node. This is why the source address is included in the interface. More...
 
sl_status_t remove_binding (zigbee_eui64_uint_t source, zigbee_binding_t binding)
 datastore::binding::remove_binding Remove a binding from the binding table of a given source address. More...
 
sl_status_t read_binding_table (zigbee_eui64_uint_t source, std::list< zigbee_binding_t > &binding_table_dest)
 datastore::binding::read_binding_table Reads the stored binding table of a given node. More...
 
size_t read_binding_count (zigbee_eui64_uint_t source)
 datastore::binding::add_binding Remove a binding from the binding table of a given source address. More...
 

Function Documentation

◆ add_binding()

sl_status_t zigpc_datastore::binding::add_binding ( zigbee_eui64_uint_t  source,
zigbee_binding_t  binding 
)

datastore::binding::add_binding Add a binding to the stored binding table of a given source address. Note, while the current implementation expects the source node to host the binding table, it is technically possible to store the binding table on a different node. This is why the source address is included in the interface.

Parameters
source- the address of the source/client sending the command to a given destination
binding-the binding information to store
Returns
SL_STATUS_OK if the binding could be successfully stored

◆ read_binding_count()

size_t zigpc_datastore::binding::read_binding_count ( zigbee_eui64_uint_t  source)

datastore::binding::add_binding Remove a binding from the binding table of a given source address.

Parameters
source- the address of the source/client sending the command to a given destination
Returns
the number of bindings attached to a given node. 0 if none or address not found

◆ read_binding_table()

sl_status_t zigpc_datastore::binding::read_binding_table ( zigbee_eui64_uint_t  source,
std::list< zigbee_binding_t > &  binding_table_dest 
)

datastore::binding::read_binding_table Reads the stored binding table of a given node.

Parameters
source- the address of the source/client sending the command to a given destination
binding_table_dest- a list of bindings, passed in by reference, to read the binding table into
Returns
SL_STATUS_OK if the binding_table could be read

◆ remove_binding()

sl_status_t zigpc_datastore::binding::remove_binding ( zigbee_eui64_uint_t  source,
zigbee_binding_t  binding 
)

datastore::binding::remove_binding Remove a binding from the binding table of a given source address.

Parameters
source- the address of the source/client sending the command to a given destination
binding-the binding to remove
Returns
SL_STATUS_OK if the binding could be removed