CoapOption.createVal constructor

CoapOption.createVal(
  1. OptionType type,
  2. int val
)

Creates an option.

Implementation

factory CoapOption.createVal(final OptionType type, final int val) =>
    CoapOption.create(type)..intValue = val;