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.

CC2640: SNP Characteristic Write Indication (0x88)

Part Number: CC2640


For the command SNP Characteristic Write Indication (0x88), is there a way to determine whether the client has sent a “Prepare Write Request”,  a “Write Request”, or a “Write Command”? Is it important to know anyway?  I believe we need this information to determine whether more data is still to be transmitted before the indication is due to be sent. Can you please share more details about the usage of this command?

Thank you!

  • Hi Lenio,

    I believe if the Response Needed is 0x00, then it is a Write Command, otherwise it is a Write Request as described in the SNP API Guide here:
    C:\ti\simplelink\ble_sdk_2_02_01_18\sap_3_00_01_07\docs.

    If the Response Needed is 0x01, just send a Write confirmation.

    Best wishes
  • Hi Zahid,

    I need more details than what the guide is offering. I understand that if the event happens, a response is needed, but how do you tell whether there is more data coming or not? What is the difference between a write request with offset 0 of a write command with offset 0? The first demands more data, while the second does not.

    Thank you!

  • Hi,

    The difference between write request and write command is that the write command does not send a response over the air.
    I think you just have to wait if the offset is nonzero to see if more data is coming.

    Best wishes
  • Hi,

    There is another way to know if more data is coming. The AP already knows how long the characteristic since it contains the profile.
    So if you receive data in which the length is less than the size of the characteristic, you can assume there is more data to be sent.

    Best wishes