Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DtlsClient ¶
type DtlsClient struct {
// contains filtered or unexported fields
}
DtlsClient provides an domain-agnostic CoAP-client with DTLS transport.
func NewDtlsClient ¶
func NewDtlsClient(gatewayAddress, clientID, psk string) *DtlsClient
NewDtlsClient acts as factory function, returns a pointer to a connected (or will panic) DtlsClient.
func (*DtlsClient) BuildGETMessage ¶
func (dc *DtlsClient) BuildGETMessage(path string) coap.Message
BuildGETMessage produces a CoAP GET message with the next msgID set.
func (*DtlsClient) BuildPOSTMessage ¶
func (dc *DtlsClient) BuildPOSTMessage(path string, payload string) coap.Message
BuildPOSTMessage produces a CoAP POST message with the next msgID set.
func (*DtlsClient) BuildPUTMessage ¶
func (dc *DtlsClient) BuildPUTMessage(path string, payload string) coap.Message
BuildPUTMessage produces a CoAP PUT message with the next msgID set.
func (*DtlsClient) Call ¶
func (dc *DtlsClient) Call(req coap.Message) (coap.Message, error)
Call writes the supplied coap.Message to the peer
Click to show internal directories.
Click to hide internal directories.