CoapOption class
This class describes the options of the CoAP messages.
- Implementers
- Annotations
-
- @immutable
Constructors
- CoapOption(OptionType _type)
- Construction
- CoapOption.create(OptionType type)
-
Creates an option.
factory
- CoapOption.createRaw(OptionType type, Uint8Buffer raw)
-
Creates an option.
factory
- CoapOption.createString(OptionType type, String str)
-
Creates an option.
factory
- CoapOption.createUriQuery(String str)
-
Creates a query option (shorthand because it's so common).
factory
- CoapOption.createVal(OptionType type, int val)
-
Creates an option.
factory
Properties
- byteValue ↔ Uint8Buffer
-
Value in bytes
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- intValue ↔ int
-
Int representation of value bytes
getter/setter pair
- length → int
-
Gets the value's length in bytes of the option.
no setter
- name → String
-
Gets the name of the option that corresponds to its type.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringValue ↔ String
-
String representation of value bytes
getter/setter pair
- type → OptionType
-
Type
no setter
- value → dynamic
-
Gets the value of the option according to its type.
no setter
Methods
-
isDefault(
) → bool - Checks whether the option value is the default.
-
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.
override
Static Methods
-
join(
List< CoapOption> ? options, String delimiter) → String? - Joins the string values of a set of options.