AVSystem / Anjay-esp32-client

Anjay ESP-32 LwM2M client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anjay-esp32-client 22.01 stop working with ANJAY_SECURITY_PSK

AxelLin opened this issue · comments

I test Anjay-esp32-client 22.01 with server uri: coaps://leshan.eclipseprojects.io:5684,
then I got below errors:

E (3866) anjay: ERROR [avs_net] [/home/axel/Anjay-esp32-client/main/anjay/deps/avs_commons/src/net/mbedtls/avs_mbedtls_socket.c:913]: PSK support disabled
E (3876) anjay: ERROR [avs_net] [/home/axel/Anjay-esp32-client/main/anjay/deps/avs_commons/src/net/mbedtls/../avs_ssl_common.h:113]: socket initialization error
E (3896) anjay: ERROR [anjay] [/home/axel/Anjay-esp32-client/main/anjay/src/core/servers/anjay_connection_ip.c:87]: could not create CoAP socket

The issue is because removing define for AVS_COMMONS_NET_WITH_PSK
cf987a2#diff-d0d7ec43c37443919998aa1b9e30f94d2ccc8bb635e683f397abd13ff4c4b23bL555
BTW, Anjay-esp32-client 22.01 added define for AVS_COMMONS_WITH_AVS_CRYPTO_PSK but seems it's not used at all.

Sorry for the inconvenience, it seems that public and commercial configurations have gone out of sync accidentaly. Just pushed the fixed version