This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Temporary GATT characteristic update

Hello,

I am adding an extra characteristic (of 6 bytes) into one of the services that exist in the default beacon app. Then I try to update this characteristic using master control app, but after I disconnect the beacon and connect back to it, the value is not there anymore. I'm not sure what to do to fix this. Any help would be appreciated.

Thanks!

Parents
  • @Sarah: Which beacon example did you base on ? Usually the beacon should not have any service or characteristic, because it's a beacon, non-connectable.

    Have you make sure you have read and write permission open on the characteristic ? You should try to read the value back after you write. Also make sure the device doesn't reset after you disconnect.

  • @Sarah: Sorry that my answer was not clear. You should store your data on flash, not RAM. To be able to store some data on flash, you should use pstorage library.

    Please have a look at beacon_write_handler() where we use pstorage_store() to store beacon's configuration data to flash. You can either modify the beacon_data_t structure or create your own pstorage module/block to store your data.

Reply
  • @Sarah: Sorry that my answer was not clear. You should store your data on flash, not RAM. To be able to store some data on flash, you should use pstorage library.

    Please have a look at beacon_write_handler() where we use pstorage_store() to store beacon's configuration data to flash. You can either modify the beacon_data_t structure or create your own pstorage module/block to store your data.

Children
No Data
Related