CoapOption.create constructor
CoapOption.create(
- OptionType type
Creates an option.
Implementation
factory CoapOption.create(final OptionType type) {
if (type == OptionType.block1 || type == OptionType.block2) {
return CoapBlockOption(type);
}
return CoapOption(type);
}