ot::MeshCoP::SecureTransport::Connect() method
Establishes a secure session. For CoAP Secure API do first: Set X509 Pk and Cert for use DTLS mode ECDHE ECDSA with AES 128 CCM 8 or set PreShared Key for use DTLS mode PSK with AES 128 CCM 8.
Arguments
aSockAddr
A reference to the remote sockaddr.
Return value
kErrorNone Successfully started handshake. kErrorInvalidState The socket is not open.
ot::MeshCoP::SecureTransport::Connect() calls 2 functions:
![]()
ot::MeshCoP::SecureTransport::Connect()
ot::MeshCoP::SecureTransport::Connect() reads 2 variables and writes 1 variable:
![]()
ot::MeshCoP::SecureTransport::Connect()