NordicPlayground / nRF51-ble-bcast-mesh

Other
323 stars 121 forks source link

Cannot increase handle count and have characteristics with both and Read and Write on BLE_Gateway example. #55

Closed rifatmahmud closed 8 years ago

rifatmahmud commented 8 years ago

Has the latest change removed the previous features of adding handles and having both read and write capability on each handle? If it is changed, please, suggest a way how to get the old feature back.

trond-snekvik commented 8 years ago

Yeah, this comes down to the new cache solution. The read operation is still available, but you'll risk getting the NRF_ERROR_NOT_FOUND if it's not in the cache.

If you want to mitigate this, you have two options:

  1. Increase your cache size by changing the RBC_MESH_DATA_CACHE_ENTRIES #define.
  2. Mark some handles as "persistent", meaning that they will never be flushed from the cache. If you have assigned a few selected handles to each device, this is the best option.

If you have a cache size larger than the range of handles you're using, the behavior will be exactly as before.

rifatmahmud commented 8 years ago

Can you please point me to the specific of this cache solution? Is this change applicable to the whole mesh service?

rifatmahmud commented 8 years ago

Got the explanations on the release notes. Should have looked at there first. My bad. :)

trond-snekvik commented 8 years ago

Hi, sorry about the long response time on this last issue, let us know if you have any further questions :)