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

sending data over ble

Hello,

I have developed a simple characteristic to send data over ble using the ble_nus service. I created a service and added a characteristic to send. Then sending the counter data (eg: 1 to 100 decimal value), one byte per second and I am testing using MCP.

It is able to connect and bond and also I am able to see the characteristic which I have added. But I am not able to see the data.

Do I have to configure any to send data over ble?

Regards,

Sowmya

Parents
  • If the characteristic is properly configured as readable, then you can poll for the data (read it).

    If you want push-style data updates (an update is sent every time there's new data), the characteristic will need to support either indications or notifications as well as have a client characteristic configuration descriptor (CCCD) to allow the client to opt-in to receive the updates. I'm guessing that you haven't used the MCP to enable the notifications/indications on the characteristic.

    See the other posts on the CCCD, indications or notifications. There are also several examples in the SDK.

    1. No. The Bluetooth Specs define the packet structure. 2) No. Again, packet size limitations (and notifications appear to be a single packet). Again, you can send multiple notification (or indication) packets. If using this approach, you may be best to use indications since they will confirm receipt. (Also, it looks like you posted further questions as answers. It would have probably fit better as a comment. Perhaps a forum moderator can adjust this thread)
Reply
    1. No. The Bluetooth Specs define the packet structure. 2) No. Again, packet size limitations (and notifications appear to be a single packet). Again, you can send multiple notification (or indication) packets. If using this approach, you may be best to use indications since they will confirm receipt. (Also, it looks like you posted further questions as answers. It would have probably fit better as a comment. Perhaps a forum moderator can adjust this thread)
Children
No Data
Related