libtropic
C library for TROPIC01 chip

◆ lt_out__session_start()

lt_ret_t lt_out__session_start ( lt_handle_t h,
const pkey_index_t  pkey_index,
session_state_t state 
)

After successful execution, h->l2->buff will contain data for L2 handshake request.

Note
For more information read info at the top of this file.
Parameters
hDevice's handle
pkey_indexIndex of pairing public key
stateStructure holding session state, will be filled by this function. Content is used to finish secure session establishment in lt_in__session_start().
Returns
LT_OK if success, otherwise returns other error code.