Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
adfdf62
net: lwm2m: refactor engine to use lwm2m_message structure
Sep 1, 2017
2c3fa94
net: lwm2m: add timeout callbacks to registration client
Sep 1, 2017
bb4cdc3
net: lwm2m: set range for client lifetime config
Aug 25, 2017
27bf1f3
net: http: add config to separate URL only parser
rbtchc Aug 10, 2017
9720fa0
net: lwm2m: add state machine for firmware pull update
rbtchc Jul 5, 2017
c5c578d
net: lwm2m: setup data_ptr/len for OPAQUE resource when none given
rbtchc Aug 23, 2017
e72bfed
net: lwm2m: add firmware push support
rbtchc Jul 25, 2017
d0981fc
net: lwm2m: RD client start message should be INFO not DEBUG
Sep 6, 2017
34a2dcc
net: lwm2m: change registraion update messages to INFO
Sep 7, 2017
86df78a
net: lwm2m: fix message release for separate reply
Sep 6, 2017
40ba2ba
net: lwm2m: split out lwm2m context initialization
Sep 8, 2017
bc31a4c
net: lwm2m: setup lwm2m ctx for firmware download
Sep 8, 2017
a75fa55
net: lwm2m: fix packet leak in timeout work
Sep 8, 2017
cf0ccbc
net: lwm2m: add full block-wise retries for firmware download
Sep 8, 2017
bcb0de8
net: lwm2m: ignore duplicate/older block transfers
Sep 8, 2017
1f2ea63
net: lwm2m: firmware: add support for firmware pull over CoAP proxy
rsalveti Jul 27, 2017
3f6b20d
net: lwm2m: add RD client callbacks for app
Sep 12, 2017
84cf117
net: coap: Rename ZOAP library
rveerama1 Aug 28, 2017
b41d0cb
net: coap: Add multi fragment support to CoAP library
rveerama1 Aug 28, 2017
6b27b03
net: tests: Update CoAP tests to use new API
rveerama1 Aug 28, 2017
def0d45
net: samples: Modify leds_demo to use new CoAP api's
rveerama1 Aug 28, 2017
6b6077e
net: samples: Modify zoap_server to new CoAP api's
rveerama1 Aug 28, 2017
6a1ea81
net: samples: Modify zoap_client to new CoAP api's
rveerama1 Aug 28, 2017
e099275
net: samples: Modify coaps_server to new CoAP api's
rveerama1 Aug 28, 2017
00a441a
net: samples: Modify coaps_client to new CoAP api's
rveerama1 Aug 28, 2017
e38a1dd
net: samples: Add leds demo app over RPL and CoAP
rveerama1 Aug 23, 2017
54f9b22
net: Deprecate ZOAP library
rveerama1 Oct 2, 2017
f56faa5
net: coap: parse_option() exit gracefully when no payload
Sep 19, 2017
f6fcbc8
net: lwm2m: move to using the new multi-packet CoAP API
Sep 19, 2017
9ebb3eb
net: lwm2m: add support for DTLS
Aug 25, 2017
757d93b
mbedtls: add lwm2m config for DTLS support
Sep 27, 2017
36faa44
samples: lwm2m: add support for DTLS
Aug 25, 2017
3d39de5
net: coap: fix coap packet length calculation
Sep 27, 2017
c51cc0a
net: lib: lwm2m: use correct remote address when DTLS is enabled
Sep 27, 2017
57a82d6
net: lwm2m: reduce LwM2M footprint via lower defaults in Kconfig
Oct 1, 2017
ac01204
samples: lwm2m: cleanup prj_*.conf files
Oct 2, 2017
c7969eb
samples: lwm2m: reduce footprint of lwm2m configs
Oct 2, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/api/networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MQTT 3.1.1
CoAP
====

.. doxygengroup:: zoap
.. doxygengroup:: coap
:project: Zephyr

DNS Resolve
Expand Down
8 changes: 4 additions & 4 deletions doc/subsystems/networking/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ can be disabled if not needed.
A sample :ref:`mqtt-publisher-sample` client application for MQTT v3.1.1 is
implemented.

* **CoAP** Constrained Application Protocol (RFC 7252) is supported. Both
Both :ref:`zoap-client-sample` and :ref:`zoap-server-sample` sample
applications are implemented. A :ref:`coap-client-sample` and
:ref:`coap-server-sample` using DTLS (Datagram Transport Layer Security)
* **CoAP** Constrained Application Protocol (RFC 7252) is supported.
Both :ref:`coap-client-sample` and :ref:`coap-server-sample` sample
applications are implemented. A :ref:`coaps-client-sample` and
:ref:`coaps-server-sample` using DTLS (Datagram Transport Layer Security)
(RFC 6347) are also implemented.

* **LWM2M** OMA Lightweight Machine-to-Machine Protocol (V1.0 Feb 2017) is
Expand Down
2 changes: 1 addition & 1 deletion doc/zephyr.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ INPUT = \
../include/arch/arm/cortex_m \
../include/arch/nios2/ \
../lib/libc/minimal/include/ \
../include/net/zoap.h \
../include/net/coap.h \
../include/net/dns_resolve.h \
../tests/ztest/include/
INPUT_ENCODING = UTF-8
Expand Down
97 changes: 97 additions & 0 deletions ext/lib/crypto/mbedtls/configs/config-lwm2m.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
* Minimal configuration for DTLS 1.2 with PSK and AES-CCM ciphersuites
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is part of mbed TLS (https://tls.mbed.org)
*/
/*
* Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites
* Distinguishing features:
* - no bignum, no PK, no X509
* - fully modern and secure (provided the pre-shared keys have high entropy)
* - very low record overhead with CCM-8
* - optimized for low RAM usage
*
* See README.txt for usage instructions.
*/
#ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H

/* System support */
#define MBEDTLS_PLATFORM_C
#define MBEDTLS_PLATFORM_MEMORY
#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
#define MBEDTLS_PLATFORM_EXIT_ALT
#define MBEDTLS_NO_PLATFORM_ENTROPY
#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
#define MBEDTLS_PLATFORM_PRINTF_ALT

#if defined(CONFIG_MBEDTLS_TEST)
#define MBEDTLS_SELF_TEST
#define MBEDTLS_DEBUG_C
#else
#define MBEDTLS_ENTROPY_C
#endif


/* mbed TLS feature support */
#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
#define MBEDTLS_SSL_PROTO_TLS1_2
#define MBEDTLS_SSL_PROTO_DTLS
#define MBEDTLS_SSL_DTLS_ANTI_REPLAY
#define MBEDTLS_SSL_DTLS_HELLO_VERIFY


/* mbed TLS modules */
#define MBEDTLS_AES_C
#define MBEDTLS_CCM_C
#define MBEDTLS_CIPHER_C
#define MBEDTLS_CTR_DRBG_C
#define MBEDTLS_ENTROPY_C
#define MBEDTLS_MD_C
#define MBEDTLS_SHA256_C
#define MBEDTLS_SSL_COOKIE_C
#define MBEDTLS_SSL_CLI_C
#define MBEDTLS_SSL_SRV_C
#define MBEDTLS_SSL_TLS_C

/* Save RAM at the expense of ROM */
#define MBEDTLS_AES_ROM_TABLES

/* Save some RAM by adjusting to your exact needs */
#define MBEDTLS_PSK_MAX_LEN 16 /* 128-bits keys are generally enough */

#if defined(CONFIG_MBEDTLS_DEBUG)
#define MBEDTLS_ERROR_C
#define MBEDTLS_DEBUG_C
#define MBEDTLS_SSL_DEBUG_ALL
#define MBEDTLS_SSL_ALL_ALERT_MESSAGES
#endif

/*
* Use only CCM_8 ciphersuites, and
* save ROM and a few bytes of RAM by specifying our own ciphersuite list
*/
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8

#define MBEDTLS_SSL_MAX_CONTENT_LEN 1500

#include "mbedtls/check_config.h"

#endif /* MBEDTLS_CONFIG_H */
Loading