Tool/software: Code Composer Studio
Hi,
I need to send an Indication with more that 20 Byte (with Bluetooth 4.0), can I send multi packet with Indicate or do I need to use Notify?
Thanks.
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.
Tool/software: Code Composer Studio
Hi,
I need to send an Indication with more that 20 Byte (with Bluetooth 4.0), can I send multi packet with Indicate or do I need to use Notify?
Thanks.
Hello,
Yes you can, please take a look at the Data Service in the Project Zero example.
Best regards,
David
Hi,
thanks for your help,
I don't understand how Data Service send a multi packet with an indicate.
For example I need to send a 40 byte packet, so i have send 2 packet (20 byte each).
I woul axpect to find a loop that call GATTServApp_ProcessCharCfg two times.
The first time with the first 20 byte, it waits the ACK, and after it send the second 20 byte, with an other call to GATTServApp_ProcessCharCfg .
Is it right?
Thanks.
Best regards.
Giuseppe
Hello Giuseppe,
I think it is easier just to change the stream length, look into data_service.h (DS_STREAM_LEN from 20 to 40).
Hopefully this helps.
David