dtlscoap

package
v0.0.0-...-a8351af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL