Skip to content
Laurent Deru edited this page Feb 8, 2014 · 3 revisions

TinyDTLS

6LBR includes a modified version of TinyDTLS validated on the following platforms :

  • Native
  • Econotag
  • WisMote

It contains many fixes (mainly casting issues on 16/20 bits platforms) and also an automatic closing of connection after an idle period so that if a connection is broken the resources can be freed shortly. It is interoperable with TinyDTLS provided client and Scandium, the DTLS layer of Californium.

6LBR-Demo contains an DTLS Echo server as example, showing how to use this library.

Configuration

  • DTLS_CONF_IDENTITY_HINT : Identity hint to be used in handshake (default is 'Client_identity')

  • DTLS_CONF_IDENTITY_HINT_LENGTH : Length in bytes of the identity hint

  • DTLS_CONF_PSK_KEY : Pre-shared secret key

  • DTLS_CONF_PSK_KEY_LENGTH : Pre-shared secret key length

  • DTLS_CONF_CONN_TIMEOUT : Idle time before closing connection, default value is 10 seconds.

  • DTLS_PEER_MAX : Maximum number of opened connection, default value is 1.

  • WITH_ECDSA : Enable ECDSA certificate support, default is disabled.

Clone this wiki locally