SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
To update a file as part of a bundle, the file should be opened for write with the bundle flag (SL_FS_WRITE_BUNDLE_FILE). Open a new file as part of a bundle that has no pre-conditions.
To open an existing file as part of a bundle, the file should fulfill the following conditions:
The device manages the state of a file. The file state can be viewed by retrieving the file flags, and the file flags can be retrieved by using the FsGetFileList() function and the sl_FsGetInfo() function.
The following is a list of the possible file states.
SL_ERROR_FS_FILE_IS_PENDING_COMMIT
.Table 9-13 is a summary of the possible file states related to the bundle state (the bundle states are described in the following section).
Bundle State | Possible Files State |
---|---|
STOPPED | All files are in normal state |
STARTED | • Normal • BUNDLE_FILE • PENDING_BUNDLE_COMMIT |
PENDING_COMMIT | • Normal • PENDING_BUNDLE_COMMIT |