This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

attDeviceName

Hi,

We would like to change the attDeviceName OTA.  We have made the suggested modifications and added permissions to write to 0x2A00 and change the name successfully.  However, when power is cycled, this obviously reverts to the hard coded name.

Therefore we need to store and recover this name from flash.  On power up initialisation this is fairly straightforward, but how how/where do we intercept the OTA write of 0x2A00 so we can update the flash variable?

I assume that there is a call back function involved?  I realise we can add another characteristic and do it that way but that seems a bit messy.

Any help or hint much appreciated!

Tony

  • OK, after a bit of digging I can see that there is a call back function now prototyped in gapgattserver.h 

    void GGS_RegisterAppCBs( ggsAppCBs_t *appCallbacks );

    Anyone got a brief exapmle of this in use, or point me in the right direction?

    Many Thanks!