-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
570 changed files
with
291,832 additions
and
23,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
/* | ||
* Copyright 2017-2020 AVSystem <[email protected]> | ||
* | ||
* 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 <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -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 | ||
|
@@ -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. | ||
|
@@ -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. | ||
* | ||
|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
/* | ||
* Copyright 2020 AVSystem <[email protected]> | ||
* Copyright 2020-2021 AVSystem <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -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 |
14 changes: 1 addition & 13 deletions
14
Core/Inc/avsystem/coap/avs_coap_config.h → ...ation/Inc/avsystem/coap/avs_coap_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
/* | ||
* Copyright 2017-2020 AVSystem <[email protected]> | ||
* | ||
* 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 <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2017-2020 AVSystem <[email protected]> | ||
* Copyright 2017-2021 AVSystem <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -18,7 +18,7 @@ | |
#define AVS_COMMONS_CONFIG_H | ||
|
||
/** | ||
* @file avs_avs_commons_config.h | ||
* @file avs_commons_config.h | ||
* | ||
* avs_commons library configuration. | ||
* | ||
|
@@ -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 | ||
/**@}*/ | ||
|
||
/** | ||
|
@@ -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 */ | ||
/**@}*/ | ||
|
@@ -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 */ | ||
/**@}*/ | ||
|
||
/** | ||
|
@@ -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. | ||
*/ | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
Core/Inc/basic_sensor_object.h → Application/Inc/basic_sensor_object.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2020 AVSystem <[email protected]> | ||
* Copyright 2020-2021 AVSystem <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
Oops, something went wrong.