Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCOAPServerAlreadyStarted = errors.New("CoAP server has already been started")
ErrCOAPServerAlreadyStarted indicates that a CoAP server has already been started by the IoT Gateway
Functions ¶
func SetAuthenticationTree ¶
SetAuthenticationTree changes the authentication tree that the gateway was created with. This is a convenience function for functional testing.
Types ¶
type Gateway ¶ added in v7.1.0
type Gateway struct {
// contains filtered or unexported fields
}
Gateway represents the IoT Gateway
func New ¶ added in v7.1.0
func New(baseURL string, realm string, authTree string, timeout time.Duration, handlers []callback.Handler) *Gateway
New creates a new IoT Gateway
func (*Gateway) Address ¶ added in v7.1.0
Address returns in string form the address that it is listening on.
func (*Gateway) Initialise ¶ added in v7.1.0
Initialise the IoT Gateway
func (*Gateway) ShutdownCOAPServer ¶ added in v7.1.0
func (c *Gateway) ShutdownCOAPServer()
ShutdownCOAPServer gracefully shuts the COAP server down
Click to show internal directories.
Click to hide internal directories.