nn::uds::CTR::ScrambledLocalFriendCode Structurestruct ScrambledLocalFriendCode
{
bit16 value[SCRAMBLED_LOCAL_FRINED_CODE_SIZE/sizeof(bit16)];
};
This structure stores information that can be converted to a local friend code using the Friends library.
To simplify the use of friend features in local communications and at the same time protect user privacy and prevent individual tracking, you can query the friends library and get the local friend code as represented by a data array of nn::uds::SCRAMBLED_LOCAL_FRINED_CODE_SIZE bytes. This way you do not use the local friend code from the UDS library.
Even on the same device, this data will have a different value every time the application starts, so it cannot be used to identify devices after the application has started. If there is any change to the node ID in UDS communication and DLP communication, the scrambledLocalFriendCode changes even on the same device. However, the first 8 bytes does not change, so you can match this to identify devices.
| value | bit16 | Data array that can be converted into the local friend code. |
|---|
CONFIDENTIAL