I noticed that the onCancel callback that has been added to the observe method in #188 was called a bit too early to allow for the delivery of incoming responses. This PR adds a boolean variable to track if the preparation of the CoapObserveClientRelation is already done, preventing the callback from early invocation.
This PR should fix #190.
I noticed that the
onCancel
callback that has been added to theobserve
method in #188 was called a bit too early to allow for the delivery of incoming responses. This PR adds a boolean variable to track if the preparation of theCoapObserveClientRelation
is already done, preventing the callback from early invocation.