How to establish PTLS session

As a security library, we recommend using MbedTLS.

To startup establishing PTLS session you need to:

  1. Register connectable device in our Tedee API with ECDSA asymmetric public key.

  2. Find proper Tedee Lock.

  3. Connect to lock.

  4. Turn on notifications on PTLS TX.

  5. Establish PTLS session via 3 stages writting on characteristic PTLS RX and reading from PTLS TX:

    1. Exchange “Hello” messages

    2. Server verification

    3. Client verification

PTLS session establishment is presented in below communication diagram.

lock states diagram