Base class for a Protocol Client.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
discoverDirectly(
Uri uri, {bool disableMulticast = false}) → Stream< DiscoveryContent> -
Discovers one or more Thing Descriptions from a
uri
, returning a Stream of Content. -
discoverWithCoreLinkFormat(
Uri uri) → Stream< DiscoveryContent> -
Discovers links using the CoRE Link Format (see RFC 6690) from a
uri
, encoded as a Stream of Content. -
invokeResource(
AugmentedForm form, Content content) → Future< Content> -
Requests the client to perform an
invokeaction
operation on aform
using the givencontent
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readResource(
AugmentedForm form) → Future< Content> -
Requests the client to perform a
readproperty
operation on aform
. -
requestThingDescription(
Uri url) → Future< Content> -
Requests a Thing Description as
Content
from aurl
. -
start(
) → Future< void> - Starts this ProtocolClient.
-
stop(
) → Future< void> - Stops this ProtocolClient.
-
subscribeResource(
AugmentedForm form, {required void next(Content content), void error(Exception error)?, required void complete()}) → Future< Subscription> -
Requests the client to perform a
subscribeproperty
operation on aform
. -
toString(
) → String -
A string representation of this object.
inherited
-
writeResource(
AugmentedForm form, Content content) → Future< void> -
Requests the client to perform a
writeproperty
operation on aform
using the givencontent
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited