Skip to main content
jampino
Associate III
March 20, 2018
Question

Confirmation Update

  • March 20, 2018
  • 1 reply
  • 1106 views
Posted on March 20, 2018 at 15:26

Hello,

Having connected two bluenrg-1 devices, if I send a new update value from the slave to the master, is there any way of receiving a confirmation from the master to the slave when I send that new value to know if the master has receive the update correctly.

Thank you

    This topic has been closed for replies.

    1 reply

    Antonio Vilei
    ST Employee
    March 21, 2018
    Posted on March 21, 2018 at 15:51

    Hi Jamp,

    by reading some other posts that you have written earlier, I assume that you are using notifications to let the GATT client (the master in your case) get updates from the GATT server (the slave in your case).

    If you want to make sure that the update has actually been received, you should use indications instead of notifications. The standard specifies that when you use indications, you get an acknowledgement to confirm that indication was successfully received.

    So, when creating your characteristic, please enable add the Indicate property.

    Quoting the standard:

    '4.11.1 Indications

    This sub-procedure is used when a server is configured to indicate a

    Characteristic Value

    to a client and expects an Attribute Protocol layer

    acknowledgment that the indication was successfully received.

    The Attribute Protocol

    Handle Value Indication

    is used to perform this subprocedure.

    The

    Attribute Handle

    parameter shall be set to the

    Characteristic

    Value Handle

    being indicated, and the

    Attribute Value

    parameter shall be set to

    the

    Characteristic Value

    . Once the

    Handle Value Indication

    is received by the

    client, the client shall respond with a

    Handle Value Confirmation

    .'

    Best regards,

    Antonio

    jampino
    jampinoAuthor
    Associate III
    March 22, 2018
    Posted on March 22, 2018 at 10:20

    Thank you for your help