I have been testing out the various features of the Golioth SDK and console. When testing the 'samples/settings' project I ran into an issue (net_sock_tls: TLS handshake error: -7780) when the system client was trying to connect to the Golioth servers .
After debugging the issue, the root cause is that golioth_dtls_psk_id (in system_client.c) is only set to allow PSK-ID's with a max length of 64 chars.
This fix is needed because 'console.golioth.io' will auto-generate and allow psk-id's over 64 chars.
I have been testing out the various features of the Golioth SDK and console. When testing the
'samples/settings'
project I ran into an issue (net_sock_tls: TLS handshake error: -7780
) when the system client was trying to connect to the Golioth servers .After debugging the issue, the root cause is that golioth_dtls_psk_id (in system_client.c) is only set to allow PSK-ID's with a max length of 64 chars.
This fix is needed because 'console.golioth.io' will auto-generate and allow psk-id's over 64 chars.