Loading...
Searching...
No Matches
lwm2m_client_connection.h
Go to the documentation of this file.
1/*******************************************************************************
2*
3* Copyright (c) 2015 Intel Corporation and others.
4* All rights reserved. This program and the accompanying materials
5* are made available under the terms of the Eclipse Public License v1.0
6* and Eclipse Distribution License v1.0 which accompany this distribution.
7*
8* The Eclipse Public License is available at:
9* http://www.eclipse.org/legal/epl-v10.html
10* The Eclipse Distribution License is available at:
11* http://www.eclipse.org/org/documents/edl-v10.php
12*
13* Contributors:
14* Simon Bernard - initial API and implementation
15* Christian Renz - Please refer to git log
16* Christian Manal - Ported to RIOT OS
17*
18*******************************************************************************/
19/*
20 * Copyright (C) 2018 Beduino Master Projekt - University of Bremen
21 * Copyright (C) 2019 HAW Hamburg
22 *
23 * This file is subject to the terms and conditions of the GNU Lesser
24 * General Public License v2.1. See the file LICENSE in the top level
25 * directory for more details.
26 */
27
40#ifndef LWM2M_CLIENT_CONNECTION_H
41#define LWM2M_CLIENT_CONNECTION_H
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47#include "net/ipv6/addr.h"
48#include "net/sock/udp.h"
49
50#include "lwm2m_client.h"
51#include "lwm2m_client_config.h"
52
53#define SCHEME_COAPS "coaps://"
54#define SCHEME_COAP "coap://"
55
67 const sock_udp_ep_t *remote,
69
82 uint8_t *buffer, size_t num_bytes,
83 lwm2m_client_data_t *client_data);
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* LWM2M_CLIENT_CONNECTION_H */
lwm2m_client_connection_type_t
Type of connection to the LwM2M server.
Definitions for IPv6 addresses.
Definitions and public API for a LwM2M client using Wakaama.
LwM2M client configurations.
lwm2m_client_connection_t * lwm2m_client_connection_find(lwm2m_client_connection_t *conn_list, const sock_udp_ep_t *remote, lwm2m_client_connection_type_t type)
Tries to find an existing connection based on a remote UDP endpoint.
int lwm2m_connection_handle_packet(lwm2m_client_connection_t *conn, uint8_t *buffer, size_t num_bytes, lwm2m_client_data_t *client_data)
Handles a received packet from a connection.
UDP sock definitions.
Common IP-based transport layer end point.
Definition sock.h:215
Connection to server descriptor.
LwM2M client descriptor.