isDefault method

bool isDefault()

Checks whether the option value is the default.

Implementation

bool isDefault() {
  if (_type == OptionType.maxAge) {
    return intValue == CoapConstants.defaultMaxAge;
  }
  return false;
}