Class BooleanCharacteristic

    • Method Detail

      • convert

        protected Boolean convert​(javax.json.JsonValue jsonValue)
        Converts from the JSON value to a Java object of the type T
        Specified by:
        convert in class BaseCharacteristic<Boolean>
        Parameters:
        jsonValue - the JSON value to convert from.
        Returns:
        the converted Java object.
      • getDefault

        public Boolean getDefault()
        Supplies a default value for the characteristic to send to connected clients when the real value. cannot be retrieved.
        Specified by:
        getDefault in class BaseCharacteristic<Boolean>
        Returns:
        a sensible default value.