zephyr: Examples support

New examples/zephyr directory that contains a sample coap-client.
Building the coap-client assumes that the zephyrproject has already been
installed and set up (default directory ~/zephyrproject).
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-10-10 16:48:50 +01:00
1 parent 7b4a20f64e
commit 4803f161f0
15 files changed
+462 -16

No files matched your search

+5 -1
View File
@@ -1733,9 +1733,13 @@ coap_dtls_new_mbedtls_env(coap_session_t *c_session,
#endif /* ESPIDF_VERSION && CONFIG_MBEDTLS_DEBUG */
if ((ret = mbedtls_ctr_drbg_seed(&m_env->ctr_drbg,
mbedtls_entropy_func, &m_env->entropy, NULL, 0)) != 0) {
if (ret != MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED) {
coap_log_info("mbedtls_ctr_drbg_seed returned -0x%x: '%s'\n",
-ret, get_error_string(ret));
goto fail;
}
coap_log_err("mbedtls_ctr_drbg_seed returned -0x%x: '%s'\n",
-ret, get_error_string(ret));
goto fail;
}
if (role == COAP_DTLS_ROLE_CLIENT) {