CoapMessageType enum
Types of CoAP messages.
Constructors
- CoapMessageType(int code, String description)
-
const
Values
- con → const CoapMessageType
-
Confirmable messages require an acknowledgement.
const CoapMessageType(0, 'Confirmable')
- non → const CoapMessageType
-
Non-Confirmable messages do not require an acknowledgement.
const CoapMessageType(1, 'Non-Confirmable')
- ack → const CoapMessageType
-
Acknowledgement messages acknowledge a specific confirmable message.
const CoapMessageType(2, 'Acknowledgement')
- rst → const CoapMessageType
-
Reset messages indicate that a specific confirmable message was received, but some context is missing to properly process it.
const CoapMessageType(3, 'Reset')
Properties
- code → int
-
final
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
int code) → CoapMessageType? -
requestType(
{required bool confirmable}) → CoapMessageType
Constants
-
values
→ const List<
CoapMessageType> - A constant List of the values in this enum, in order of their declaration.