Hello lili,
Thanks for your post. PSK is used to negotiate the first connection handshake. If sessions are enabled, the server will provide a session key (or ticket) that can be to quickly resume the connection without the full handshake.
Here is an example:
https://github.com/wolfSSL/wolfssl-exam … s-resume.c
Kind regards,
Eric @ wolfSSL Support