Contiki-NG
Loading...
Searching...
No Matches
lwm2m-queue-mode.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017, RISE SICS AB.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the copyright holder nor the names of its
14 * contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28 * OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/**
32 * \addtogroup lwm2m
33 * @{
34 */
35
36/**
37 * \file
38 * Header file for the Contiki OMA LWM2M Queue Mode implementation
39 to manage the parameters
40 * \author
41 * Carlos Gonzalo Peces <carlosgp143@gmail.com>
42 */
43
44#ifndef LWM2M_QUEUE_MODE_H_
45#define LWM2M_QUEUE_MODE_H_
46
48#include <inttypes.h>
49
50uint16_t lwm2m_queue_mode_get_awake_time();
51void lwm2m_queue_mode_set_awake_time(uint16_t time);
52uint32_t lwm2m_queue_mode_get_sleep_time();
53void lwm2m_queue_mode_set_sleep_time(uint32_t time);
54
55#if LWM2M_QUEUE_MODE_INCLUDE_DYNAMIC_ADAPTATION
56uint8_t lwm2m_queue_mode_get_dynamic_adaptation_flag();
57void lwm2m_queue_mode_set_dynamic_adaptation_flag(uint8_t flag);
58void lwm2m_queue_mode_add_time_to_window(uint16_t time);
59#endif
60
61uint8_t lwm2m_queue_mode_is_waked_up_by_notification();
62void lwm2m_queue_mode_clear_waked_up_by_notification();
63void lwm2m_queue_mode_set_waked_up_by_notification();
64
65void lwm2m_queue_mode_set_first_request();
66void lwm2m_queue_mode_set_handler_from_notification();
67
68void lwm2m_queue_mode_request_received();
69
70#endif /* LWM2M_QUEUE_MODE_H_ */
71/** @} */
Queue Mode Configuration Parameters.