Trust Center Backup#
API and Callbacks for the Trust Center Backup Component.
This component is only for a trust center. It provides a set of APIs for importing and exporting the backup info for a Smart Energy trust center. It requires extending to hook up import/export routines into an external storage device or network, where the data may be saved to and restored from.
API#
export backup data
Import backup and start network.
Import backup from file.
export backup to a file
saves tokens to a file
restores tokens from a file
Updates zigbeed tokens from a file that stores NCP tokens.
API Documentation#
sl_zigbee_trust_center_export_backup_data#
sl_status_t sl_zigbee_trust_center_export_backup_data (sl_zigbee_af_trust_center_backup_data_t * backup)
export backup data
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_zigbee_af_trust_center_backup_data_t * | N/A | backup | Ver.: always |
Returns
sl_status_t status code
sl_zigbee_trust_center_import_backup_and_start_network#
sl_status_t sl_zigbee_trust_center_import_backup_and_start_network (const sl_zigbee_af_trust_center_backup_data_t * backup)
Import backup and start network.
Type | Direction | Argument Name | Description |
---|---|---|---|
const sl_zigbee_af_trust_center_backup_data_t * | N/A | backup | Ver.: always |
Returns
sl_status_t status code
sl_zigbee_af_trust_center_import_backup_from_file#
sl_status_t sl_zigbee_af_trust_center_import_backup_from_file (const char * filepath)
Import backup from file.
Type | Direction | Argument Name | Description |
---|---|---|---|
const char * | N/A | filepath | Ver.: always |
Returns
sl_status_t status code
Note
Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
sl_zigbee_af_trust_center_export_backup_to_file#
sl_status_t sl_zigbee_af_trust_center_export_backup_to_file (const char * filepath)
export backup to a file
Type | Direction | Argument Name | Description |
---|---|---|---|
const char * | N/A | filepath | Ver.: always |
Returns
sl_status_t status code
Note
Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
sl_zigbee_af_trust_center_backup_save_tokens_to_file#
sl_status_t sl_zigbee_af_trust_center_backup_save_tokens_to_file (const char * filepath)
saves tokens to a file
Type | Direction | Argument Name | Description |
---|---|---|---|
const char * | N/A | filepath | Ver.: always |
Returns
sl_status_t status code
Note
Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
sl_zigbee_af_trust_center_backup_restore_tokens_from_file#
sl_status_t sl_zigbee_af_trust_center_backup_restore_tokens_from_file (const char * filepath)
restores tokens from a file
Type | Direction | Argument Name | Description |
---|---|---|---|
const char * | N/A | filepath | Ver.: always |
Returns
sl_status_t status code
Note
Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
sl_zigbee_af_trust_center_backup_write_ncp_token_to_zigbeed_tokens#
sl_status_t sl_zigbee_af_trust_center_backup_write_ncp_token_to_zigbeed_tokens (const char * filepath)
Updates zigbeed tokens from a file that stores NCP tokens.
Type | Direction | Argument Name | Description |
---|---|---|---|
const char * | N/A | filepath | Ver.: always |
Returns
sl_status_t status code
Note
Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT