Skip to content

CoapServer

Jim Schaad edited this page Jul 6, 2017 · 2 revisions

This class provides the basic implementation for a CoAP server.

Constructor

The following are named parameters that can be used by constructors.

ports: Array of port numbers to bind to. If not provided, then the UDP default is used.

config: configuration interface with defaults. See ICoapConfig. If not provided then the default configuration is used.

Properties

Config: Configuration used by the server.

EndPoints: Get an enumeration of the endpoints.

MessageDeliverer: Get/Set the message delivery interface. This class deals with the delivering requests to the resource.

Methods

Add: Add one or more resources to the server.

AddEndPoint: Add an endpoint to the server.

Dispose: Release resources associated with the server and all associated end points.

FindEndPoint: Given an local endpoint information, return the associated endpoint object.

Remove: Remove a resource from the server.

Start: Start the server and all end points associated with the server.

Stop: Stop the server and all associated end points.

Usage

Clone this wiki locally