OptionDefinition
class OptionDefinition(val number: Int, val name: String, val format: OptionFormat, val minLength: Int, val maxLength: Int, val repeatable: Boolean, val oscoreClasses: Set<OscoreClass>, val reference: String)(source)
A registered CoAP option. Critical / Unsafe / NoCacheKey are derived from the option number (RFC 7252 §5.4.6), so they cannot drift from the registry.
Constructors
Link copied to clipboard
constructor(number: Int, name: String, format: OptionFormat, minLength: Int, maxLength: Int, repeatable: Boolean, oscoreClasses: Set<OscoreClass>, reference: String)