Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Difference between FDS record key and record ID

Hi,

The title summarizes the question. I don't understand the difference between the record key and the record ID.

The documentation doesn't really help me understand this. How does the record key not identify the record? Or why is it necessary to have a separate 32-bit ID?

Parents
  • A record key, file combination is not unique, thus the system needs another way to uniquely identify a record, i.e. the record ID. For example you could have a 100 records with key: K and file: F, but each would have a unique record ID.

    Plus, the record ID is not visible to the user and it can't be chosen, or manipulated; it is only assigned and used by the system as opposed from the record key, which can be chosen.

Reply
  • A record key, file combination is not unique, thus the system needs another way to uniquely identify a record, i.e. the record ID. For example you could have a 100 records with key: K and file: F, but each would have a unique record ID.

    Plus, the record ID is not visible to the user and it can't be chosen, or manipulated; it is only assigned and used by the system as opposed from the record key, which can be chosen.

Children
Related