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

Exposing a table through BLE

What is the cleanest way to expose a dynamic (non-fixed amount of entries) through BLE?

One way I thought of is to create a service for a single table entry and go through the entries by the use of "buttons" - characteristics which, when written to, reload the service with new entry. Weird, I know. Is there a better way?

Parents
  • Hi Andrey,

    How large is the data ? You can declare a characteristics with dynamic length to up to 510 bytes.

    Please correct me if I am wrong, you plan to have an index characteristic that you can write the index in and the read the value out on the value characteristic ?

    If it's what you plan to do, i think it's the correct way of handling large array.

Reply
  • Hi Andrey,

    How large is the data ? You can declare a characteristics with dynamic length to up to 510 bytes.

    Please correct me if I am wrong, you plan to have an index characteristic that you can write the index in and the read the value out on the value characteristic ?

    If it's what you plan to do, i think it's the correct way of handling large array.

Children
No Data
Related