/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Resource } from "#models/Resource.js";
Resource.add(
  {
    tag: "datatype",
    name: "temperature",
    description: "Temperature",
    xref: "core\xA77.19.2.9",
    details: "This type represents a temperature on the Celsius scale with a resolution of 0.01\xB0C.\n  \u2022 value = (temperature in \xB0C) x 100\nThe range is constrained by absolute zero: -273.15\xB0C to 327.67\xB0C.\n### Conversion of Temperature Values for Display\nWhen converting temperature values for display manufacturers SHOULD ensure that calculations round to the nearest representable value. Particular care is needed when using integer arithmetic.\n### Sample Conversion Code\nSample code provided to ensure consistent Fahrenheit to Celsius and vice-versa conversion between devices and across vendors.\nFor degF: the value is a int8u representing 2x temperature value in Fahrenheit (to get 0.5 resolution).\nFor degC: the value is a int16s representing Celsius in 0.01 resolution as expected by the Matter format."
  }
);
//# sourceMappingURL=temperature.resource.js.map
