mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 05:07:47 +00:00
Pass message info in CoAP response handler. (#1059)
This commit is contained in:
committed by
Jonathan Hui
parent
4ddb76d366
commit
d095cf884e
@@ -129,10 +129,11 @@ typedef struct otCoapHeader
|
||||
/**
|
||||
* This function pointer is called when a CoAP response is received or on the request timeout.
|
||||
*
|
||||
* @param[in] aContext A pointer to application-specific context.
|
||||
* @param[in[ aHeader A pointer to the received CoAP header. NULL if no response was received.
|
||||
* @param[in] aMessage A pointer to the message buffer containing the response. NULL if no response was received.
|
||||
* @param[in] aResult A result of the CoAP transaction.
|
||||
* @param[in] aContext A pointer to application-specific context.
|
||||
* @param[in[ aHeader A pointer to the received CoAP header. NULL if no response was received.
|
||||
* @param[in] aMessage A pointer to the message buffer containing the response. NULL if no response was received.
|
||||
* @param[in] aMessageInfo A pointer to the message info for @p aMessage. NULL if no response was received.
|
||||
* @param[in] aResult A result of the CoAP transaction.
|
||||
*
|
||||
* @retval kThreadError_None A response was received successfully.
|
||||
* @retval kThreadError_Abort A CoAP transaction was reseted by peer.
|
||||
@@ -140,7 +141,7 @@ typedef struct otCoapHeader
|
||||
*
|
||||
*/
|
||||
typedef void (*otCoapResponseHandler)(void *aContext, otCoapHeader *aHeader, otMessage aMessage,
|
||||
ThreadError aResult);
|
||||
const otMessageInfo *aMessageInfo, ThreadError aResult);
|
||||
|
||||
/**
|
||||
* This function pointer is called when a CoAP request with a given Uri-Path is received.
|
||||
|
||||
Reference in New Issue
Block a user