Start()
Starts the secure CoAP agent.
Start()
Starts the secure CoAP agent.
Start()
Starts the secure CoAP agent.
SetConnectEventCallback()
Sets connected callback of this secure CoAP agent.
Stop()
Stops the secure CoAP agent.
Connect()
Initializes DTLS session with a peer.
IsConnectionActive() const
Indicates whether or not the DTLS session is active.
IsConnected() const
Indicates whether or not the DTLS session is connected.
IsClosed() const
Indicates whether or not the DTLS session is closed.
Disconnect()
Stops the DTLS connection.
GetDtls()
Returns a reference to the DTLS object.
GetUdpPort() const
Gets the UDP port of this agent.
SetPsk()
Sets the PSK.
SetPsk()
Sets the PSK.
SendMessage()
Sends a CoAP message over secure DTLS connection. If a response for a request is expected, respective function and context information should be provided. If no response is expected, these arguments should be nullptr pointers. If Message Id was not set in the header (equal to 0), this function will assign unique Message Id to the message.
SendMessage()
Sends a CoAP message over secure DTLS connection. If a response for a request is expected, respective function and context information should be provided. If no response is expected, these arguments should be nullptr pointers. If Message Id was not set in the header (equal to 0), this function will assign unique Message Id to the message.
HandleUdpReceive()
Is used to pass UDP messages to the secure CoAP server.
GetMessageInfo() const
Returns the DTLS session's peer address.
Open()
Send()
Send()
HandleDtlsConnectEvent()
HandleDtlsConnectEvent()
HandleDtlsAutoClose()
HandleDtlsAutoClose()
HandleDtlsReceive()
HandleDtlsReceive()
HandleTransmit()
HandleTransmit()