/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /*** THIS FILE IS GENERATED, DO NOT EDIT ***/ import { IdentifyServer as BaseIdentifyServer } from "../behaviors/identify/IdentifyServer.js"; import { PressureMeasurementServer as BasePressureMeasurementServer } from "../behaviors/pressure-measurement/PressureMeasurementServer.js"; import { MutableEndpoint } from "../endpoint/type/MutableEndpoint.js"; import { SupportedBehaviors } from "../endpoint/properties/SupportedBehaviors.js"; import { Identity } from "@matter/general"; /** * A Pressure Sensor device measures and reports the pressure of a fluid. * * @see {@link MatterSpecification.v161.Device} ยง 7.5 */ export interface PressureSensorDevice extends Identity {} export namespace PressureSensorRequirements { /** * The Identify cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link IdentifyServer} for convenience. */ export const IdentifyServer = BaseIdentifyServer; /** * The PressureMeasurement cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link PressureMeasurementServer} for convenience. */ export const PressureMeasurementServer = BasePressureMeasurementServer; /** * An implementation for each server cluster supported by the endpoint per the Matter specification. */ export const server = { mandatory: { Identify: IdentifyServer, PressureMeasurement: PressureMeasurementServer } }; } export const PressureSensorDeviceDefinition = MutableEndpoint({ name: "PressureSensor", deviceType: 0x305, deviceRevision: 3, requirements: PressureSensorRequirements, behaviors: SupportedBehaviors( PressureSensorRequirements.server.mandatory.Identify, PressureSensorRequirements.server.mandatory.PressureMeasurement ) }); Object.freeze(PressureSensorDeviceDefinition); export const PressureSensorDevice: PressureSensorDevice = PressureSensorDeviceDefinition;