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#
emberTrustCenterExportBackupData#
EmberStatus emberTrustCenterExportBackupData (EmberAfTrustCenterBackupData * backup)
export backup data
N/A | backup | Ver.: always |
Returns
EmberStatus status code
58
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberTrustCenterImportBackupAndStartNetwork#
EmberStatus emberTrustCenterImportBackupAndStartNetwork (const EmberAfTrustCenterBackupData * backup)
Import backup and start network.
N/A | backup | Ver.: always |
Returns
EmberStatus status code
67
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberAfTrustCenterImportBackupFromFile#
EmberStatus emberAfTrustCenterImportBackupFromFile (const char * filepath)
Import backup from file.
N/A | filepath | Ver.: always |
Returns
EmberStatus status code
Note
Available only for EMBER_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
78
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberAfTrustCenterExportBackupToFile#
EmberStatus emberAfTrustCenterExportBackupToFile (const char * filepath)
export backup to a file
N/A | filepath | Ver.: always |
Returns
EmberStatus status code
Note
Available only for EMBER_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
89
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberAfTrustCenterBackupSaveTokensToFile#
EmberStatus emberAfTrustCenterBackupSaveTokensToFile (const char * filepath)
saves tokens to a file
N/A | filepath | Ver.: always |
Returns
EmberStatus status code
Note
Available only for EMBER_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
100
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberAfTrustCenterBackupRestoreTokensFromFile#
EmberStatus emberAfTrustCenterBackupRestoreTokensFromFile (const char * filepath)
restores tokens from a file
N/A | filepath | Ver.: always |
Returns
EmberStatus status code
Note
Available only for EMBER_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
111
of file app/framework/plugin/trust-center-backup/trust-center-backup.h
emberAfTrustCenterBackupWriteNcpTokenToZigbeedTokens#
EmberStatus emberAfTrustCenterBackupWriteNcpTokenToZigbeedTokens (const char * filepath)
Updates zigbeed tokens from a file that stores NCP tokens.
N/A | filepath | Ver.: always |
Returns
EmberStatus status code
Note
Available only for EMBER_AF_PLUGIN_TRUST_CENTER_BACKUP_POSIX_FILE_BACKUP_SUPPORT
122
of file app/framework/plugin/trust-center-backup/trust-center-backup.h