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#

sl_zigbee_trust_center_export_backup_data(sl_zigbee_af_trust_center_backup_data_t *backup)

export backup data

sl_zigbee_trust_center_import_backup_and_start_network(const sl_zigbee_af_trust_center_backup_data_t *backup)

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

Parameters
N/Abackup

Ver.: always

Returns

  • sl_status_t status code


Definition at line 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.

Parameters
N/Abackup

Ver.: always

Returns

  • sl_status_t status code


Definition at line 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.

Parameters
N/Afilepath

Ver.: always

Returns

  • sl_status_t status code

Note

  • Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT


Definition at line 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

Parameters
N/Afilepath

Ver.: always

Returns

  • sl_status_t status code

Note

  • Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT


Definition at line 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

Parameters
N/Afilepath

Ver.: always

Returns

  • sl_status_t status code

Note

  • Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT


Definition at line 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

Parameters
N/Afilepath

Ver.: always

Returns

  • sl_status_t status code

Note

  • Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT


Definition at line 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.

Parameters
N/Afilepath

Ver.: always

Returns

  • sl_status_t status code

Note

  • Available only for SL_ZIGBEE_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT


Definition at line 123 of file app/framework/plugin/trust-center-backup/trust-center-backup.h