code: def version(self, v):
          
          if not isinstance(v, int) or v != 1:
              raise AttributeError
          self._version = v
docs: Sets the CoAP version
  
          :param v: the version
          :raise AttributeError: if value is not 1