coap_client_observe.h File Reference

CoAP observe. More...

#include "core/net.h"
#include "coap/coap_client.h"

Go to the source code of this file.

Functions

error_t coapClientProcessNotification (CoapClientRequest *request, const CoapMessage *response)
 Process notification response. More...
 
bool_t coapClientCheckSequenceNumber (CoapClientRequest *request, uint32_t v2, systime_t t2)
 Check the order of arrival for incoming notification. More...
 

Detailed Description

CoAP observe.

License

Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file coap_client_observe.h.

Function Documentation

◆ coapClientCheckSequenceNumber()

bool_t coapClientCheckSequenceNumber ( CoapClientRequest request,
uint32_t  v2,
systime_t  t2 
)

Check the order of arrival for incoming notification.

Parameters
[in]requestCoAP request handle
[in]v2Value of the Observe option in the incoming notification
[in]t2Client-local timestamp for the incoming notification
Returns
TRUE if the incoming notification was sent more recently than the freshest notification so far. Otherwise FALSE is returned

Definition at line 131 of file coap_client_observe.c.

◆ coapClientProcessNotification()

error_t coapClientProcessNotification ( CoapClientRequest request,
const CoapMessage response 
)

Process notification response.

Parameters
[in]requestCoAP request handle
[in]responsePointer to the response message
Returns
Error code

Definition at line 52 of file coap_client_observe.c.