How to send a confirmable packet

Hi,

I have bunch of SEDs (sensors/clients) and one or more FTDs (hosts) working on CoAP protocol. SEDs send data packets once in a while and mostly sleeping. I have few questions.

1. Does confirmable packets consume more battery power from the SEDs?

2. Can we set a application call back when ACK fails?

3. The 'coap_send_request ()' function in coap_utils.c seems hardwired to send non-confirmable packets. How can we send confirmable packets in this case? (I dont want to modify SDK functions as they can get overwritten if we update the SDK). Do we have to implement our own version of  'coap_send_request ()' function?

4. 'coap_send_request ()' function has a reply call back as a parameter. How does this function in a non-confirmable/confirmable packets?

Cheers,

Kaushalya

Related