Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

ModusToolbox™ General Forum Discussions

TakMune
Level 1
Level 1
First reply posted 10 questions asked 25 sign-ins

I’m trying to connect the CSBSYSKIT-DEV-01 to own MQTT-TLS broker based on sample application mtb-example-optiga-mqtt-client.

How can I output the logs from the MbedTLS library through UART?

Below options are defined in the makefile.

MBEDTLSFLAGS = MBEDTLS_USER_CONFIG_FILE='"mbedtls_user_config.h"' CY_CRYPTO_HAL_DISABLE ENABLE_SECURE_SOCKETS_LOGS

0 Likes
1 Solution
tayo
Level 5
Level 5
250 sign-ins 50 replies posted 25 replies posted

Hello 

Could you try to change the definition of log_level defined in <project name>libs\secure-sockets\source\COMPONENT_MBEDTLS\cy_tls.c?

#define MBEDTLS_VERBOSE <log_level>

Thanks

View solution in original post

0 Likes
1 Reply
tayo
Level 5
Level 5
250 sign-ins 50 replies posted 25 replies posted

Hello 

Could you try to change the definition of log_level defined in <project name>libs\secure-sockets\source\COMPONENT_MBEDTLS\cy_tls.c?

#define MBEDTLS_VERBOSE <log_level>

Thanks

0 Likes