CoapServer class final

A ProtocolServer for the Constrained Application Protocol (CoAP).

Implemented types

Constructors

CoapServer([CoapConfig? coapConfig])
Creates a new CoapServer which can be configured using a CoapConfig.

Properties

hashCode int
The hash code for this object.
no setterinherited
port int
The port number used by this Server.
final
preferredBlockSize int?
Preferred payload size by the server when using block-wise transfer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The protocol scheme associated with this server.
final

Methods

expose(ExposedThing thing) Future<void>
Exposes a thing.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start([ServerSecurityCallback? serverSecurityCallback]) Future<void>
Starts the server. Accepts a callback for retrieving a Map of credentials for ExposedThings at runtime.
override
stop() Future<void>
Stops the server.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited