Skip to content

Commit

Permalink
Anjay-freertos-client 21.06
Browse files Browse the repository at this point in the history
Features:
 - Added support for B-L462E-CELL1 discovery kit.
 - Added support for Monarch modem on P-L496G-CELL02 discovery kit.
 - Updated Anjay to version 2.12.0
 - Updated X-Cube-CELLULAR to version 6.0.0
 - Added APN configuration to menu.
  • Loading branch information
Mieszko Mieruński committed Jun 30, 2021
1 parent 619fbeb commit 62df6ab
Show file tree
Hide file tree
Showing 570 changed files with 291,832 additions and 23,259 deletions.
274 changes: 0 additions & 274 deletions .cproject

This file was deleted.

10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Debug/*
Release/*
.settings/*
**/.settings/*
**/Debug/*
**/Release/*
*.launch
.vscode/
Projects/*/.cproject
Projects/*/.mxproject
Projects/*/.project
22 changes: 0 additions & 22 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,7 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.st.stm32cube.ide.mcu.MCUProjectNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUCubeProjectNature</nature>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUCubeIdeServicesRevAProjectNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUAdvancedStructureProjectNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUEndUserDisabledTrustZoneProjectNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUSingleCpuProjectNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCURootProjectNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/*
* Copyright 2017-2020 AVSystem <avsystem@avsystem.com>
*
* 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.
* Copyright 2017-2021 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -62,6 +50,7 @@
* - All components required by avs_coap, see <c>avs_coap_config.h</c>
* - @c avs_algorithm
* - @c avs_stream
* - @c avs_url
* - @c avs_persistence is highly recommended
* - @c avs_http (if @c ANJAY_WITH_HTTP_DOWNLOAD is enabled)
* - @c avs_rbtree (if @c ANJAY_WITH_OBSERVE or
Expand Down Expand Up @@ -92,7 +81,7 @@
*
* Only meaningful if <c>ANJAY_WITH_LOGS</c> is enabled.
*/
#define ANJAY_WITH_TRACE_LOGS
//#define ANJAY_WITH_TRACE_LOGS

/**
* Enable core support for Access Control mechanisms.
Expand Down Expand Up @@ -249,6 +238,33 @@
*/
#define ANJAY_WITH_LWM2M_JSON

/**
* Disable support for TLV format as specified in LwM2M TS 1.0.
*
* NOTE: LwM2M Client using LwM2M 1.0 MUST support this format. It may be
* disabled if LwM2M 1.1 is used and SenML JSON or SenML CBOR is enabled.
*/
/* #undef ANJAY_WITHOUT_TLV */

/**
* Disable support for Plain Text format as specified in LwM2M TS 1.0 and 1.1.
*
* NOTE: LwM2M Client SHOULD support this format. It may be disabled to reduce
* library size if LwM2M Server is configured to not use it in requests.
*/
/* #undef ANJAY_WITHOUT_PLAINTEXT */

/**
* Disable use of the Deregister message.
*/
/* #undef ANJAY_WITHOUT_DEREGISTER */

/**
* Disable support for "IP stickiness", i.e. preference of the same IP address
* when reconnecting to a server using a domain name.
*/
/* #undef ANJAY_WITHOUT_IP_STICKINESS */

/**
* Enable support for SenML JSON format, as specified in LwM2M TS 1.1.
*
Expand All @@ -272,6 +288,17 @@
*/
/* #undef ANJAY_WITH_CBOR */

/**
* Enable support for Enrollment over Secure Transport.
*
* Requires <c>ANJAY_WITH_LWM2M11</c> and <c>ANJAY_WITH_BOOTSTRAP</c> to be
* enabled.
*
* IMPORTANT: Only available in the commercial version. Ignored in the open
* source version.
*/
/* #undef ANJAY_WITH_EST */

/**
* Enable support for custom "con" attribute that controls Confirmable
* notifications.
Expand Down
18 changes: 6 additions & 12 deletions Core/Inc/config_persistence.h → Application/Inc/application.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

/*
* Copyright 2020 AVSystem <avsystem@avsystem.com>
* Copyright 2020-2021 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,16 +15,9 @@
* limitations under the License.
*/

#ifndef CONFIG_PERSISTENCE_H
#define CONFIG_PERSISTENCE_H

typedef struct {
char server_uri[128];
char endpoint_name[64];
char psk[32];
} config_t;
#ifndef APPLICATION_H
#define APPLICATION_H

int config_save(const config_t *in_config);
int config_load(config_t *out_config);
void application_init();

#endif // CONFIG_PERSISTENCE_H
#endif // APPLICATION_H
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/*
* Copyright 2017-2020 AVSystem <avsystem@avsystem.com>
*
* 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.
* Copyright 2017-2021 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2020 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2021 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
#define AVS_COMMONS_CONFIG_H

/**
* @file avs_avs_commons_config.h
* @file avs_commons_config.h
*
* avs_commons library configuration.
*
Expand Down Expand Up @@ -137,6 +137,26 @@
* replaced with a path to such file.
*/
#define AVS_COMMONS_POSIX_COMPAT_HEADER "avsystem/commons/lwip-posix-compat.h"

/**
* Set if printf implementation doesn't support 64-bit format specifiers.
* If defined, custom implementation of conversion is used in
* @c AVS_UINT64_AS_STRING instead of using @c snprintf .
*/
#define AVS_COMMONS_WITHOUT_64BIT_FORMAT_SPECIFIERS

/**
* Set if printf implementation doesn't support floating-point numbers.
* If defined, custom implementation of conversion is used in
* @c AVS_DOUBLE_AS_STRING instead of using @c snprintf . This might increase
* compatibility with some embedded libc implementations that do not provide
* this functionality.
*
* NOTE: In order to keep the custom implementation small in code size, it is
* not intended to be 100% accurate. Rounding errors may occur - according to
* empirical checks, they show up around the 16th significant decimal digit.
*/
#define AVS_COMMONS_WITHOUT_FLOAT_FORMAT_SPECIFIERS
/**@}*/

/**
Expand Down Expand Up @@ -175,6 +195,7 @@
#define AVS_COMMONS_WITH_AVS_SCHED
#define AVS_COMMONS_WITH_AVS_STREAM
/* #undef AVS_COMMONS_WITH_AVS_UNIT */
#define AVS_COMMONS_WITH_AVS_URL
#define AVS_COMMONS_WITH_AVS_UTILS
/* #undef AVS_COMMONS_WITH_AVS_VECTOR */
/**@}*/
Expand Down Expand Up @@ -265,6 +286,78 @@
* generated by the OpenSSL backend.
*/
/* #undef AVS_COMMONS_WITH_AVS_CRYPTO_VALGRIND */

/**
* Enables high-level support for hardware-based security, i.e. loading,
* generating and managing keys and certificates via external engines.
*
* An actual implementation is required to use this feature. In the commercial
* version, you may use one of the default ones utilizing the PKCS#11 API (see
* @ref AVS_COMMONS_WITH_MBEDTLS_PKCS11_ENGINE and
* @ref AVS_COMMONS_WITH_OPENSSL_PKCS11_ENGINE) or provide your own.
*
* The functions that need to be provided in case of a custom implementation:
* - <c>avs_crypto_pki_engine_certificate_rm()</c>
* - <c>avs_crypto_pki_engine_certificate_store()</c>
* - <c>avs_crypto_pki_engine_key_gen()</c>
* - <c>avs_crypto_pki_engine_key_rm()</c>
* - When targeting the Mbed TLS backend:
* - <c>_avs_crypto_mbedtls_engine_initialize_global_state()</c>
* - <c>_avs_crypto_mbedtls_engine_cleanup_global_state()</c>
* - <c>_avs_crypto_mbedtls_engine_append_cert()</c>
* - <c>_avs_crypto_mbedtls_engine_append_crl()</c>
* - <c>_avs_crypto_mbedtls_engine_load_private_key()</c>
* - When targeting the OpenSSL backend:
* - <c>_avs_crypto_openssl_engine_initialize_global_state()</c>
* - <c>_avs_crypto_openssl_engine_cleanup_global_state()</c>
* - <c>_avs_crypto_openssl_engine_load_certs()</c>
* - <c>_avs_crypto_openssl_engine_load_crls()</c>
* - <c>_avs_crypto_openssl_engine_load_private_key()</c>
*
* External engines are supported only in OpenSSL and Mbed TLS backends.
*/
/* #undef AVS_COMMONS_WITH_AVS_CRYPTO_ENGINE */

/**
* Enables the default implementation of avs_crypto engine, based on Mbed TLS
* and PKCS#11.
*
* Requires @ref AVS_COMMONS_WITH_AVS_CRYPTO_ENGINE to be enabled.
*
* NOTE: The unit tests for this feature depend on SoftHSM and pkcs11-tool.
* These must be installed for the tests to pass.
*
* IMPORTANT: Only available in the commercial version. Ignored in the open
* source version. */
/* #undef AVS_COMMONS_WITH_MBEDTLS_PKCS11_ENGINE */

/**
* Is the <c>dlsym()</c> function available?
*
* This is currently only used if @ref AVS_COMMONS_WITH_MBEDTLS_PKCS11_ENGINE is
* enabled. If enabled, the PKCS#11 module is loaded dynamically from a library
* specified by the <c>PKCS11_MODULE_PATH</c> environment variable. If disabled,
* a function with the following signature, realizing the PKCS#11
* <c>C_GetFunctionList</c> method, must be provided manually:
*
* <pre>
* CK_RV _avs_crypto_mbedtls_pkcs11_get_function_list(CK_FUNCTION_LIST_PTR_PTR);
* </pre>
*/
/* #undef AVS_COMMONS_HAVE_DLSYM */

/**
* Enables the default implementation of avs_crypto engine, based on OpenSSL and
* PKCS#11.
*
* Requires @ref AVS_COMMONS_WITH_AVS_CRYPTO_ENGINE to be enabled.
*
* NOTE: The unit tests for this feature depend on SoftHSM and pkcs11-tool.
* These must be installed for the tests to pass.
*
* IMPORTANT: Only available in the commercial version. Ignored in the open
* source version. */
/* #undef AVS_COMMONS_WITH_OPENSSL_PKCS11_ENGINE */
/**@}*/

/**
Expand Down Expand Up @@ -330,6 +423,8 @@
/**
* Enables logging inside avs_commons.
*
* Requires @ref AVS_COMMONS_WITH_AVS_LOG to be enabled.
*
* If this macro is not defined at avs_commons compile time, calls to avs_log
* will not be generated inside avs_commons components.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 AVSystem <avsystem@avsystem.com>
* Copyright 2020-2021 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 62df6ab

Please sign in to comment.