CCCD value is stored in flash

Hi,

We have an app, that everytime when it connects to our device writes a 0x01 to a CCCD value in order to get notifications. I see that everytime when the app does this, the CCCD value gets stored in flash. We make use of a bonded device by the way.

Is there a way to not write this in flash, as this will unnecessary wear out the flash. The app will write it everytime anyway when it connects so there is no need to store.

Parents Reply
  • I tested it, and I can see

    00> <debug> peer_manager_gscm: Local db is already up to date, skipping write.

    So, solved.

    By the way, the new SDK version broke my build. This was because in /components/boards/boards.h line nr 87 the header file was renamed to "custom_board.h", while in older SDK's it was named "board.custom.h". It was very easy to fix, but I don't think new minor version increases of SDK's should break builds with renaming files.

Children
Related