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
N/A | backup | Ver.: always |
Returns
sl_status_t status code
59
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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.
N/A | backup | Ver.: always |
Returns
sl_status_t status code
68
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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.
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
79
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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
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
90
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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
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
101
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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
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
112
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
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.
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
123
of file app/framework/plugin/trust-center-backup/trust-center-backup.h