| <!-- |
| ~ Copyright (c) 2020 Kentyou. |
| ~ All rights reserved. This program and the accompanying materials |
| ~ are made available under the terms of the Eclipse Public License v1.0 |
| ~ which accompanies this distribution, and is available at |
| ~ http://www.eclipse.org/legal/epl-v10.html |
| ~ |
| ~ Contributors: |
| * Kentyou - initial API and implementation |
| --> |
| <resourceInfos xmlns="http://org.eclipse.sensinact/resource" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://org.eclipse.sensinact/resource ../../../../../../sensinact-generic/src/main/resources/sensinact-resource.xsd"> |
| <resourceInfo xsi:type="resourceInfoProperty" name="TEMPERATURE" profile="temphum" |
| target="service1"> |
| <identifier xsi:type="stringContent">TEMPERATURE</identifier> |
| <attributes> |
| <attribute name="value" type="float" modifiable="MODIFIABLE"> |
| <value>5</value> |
| <metadata> |
| <meta name="Description" type="string"> |
| <value>temperature sensor</value> |
| </meta> |
| <meta name="unit" type="string"> |
| <value>celsius</value> |
| </meta> |
| <meta name="min" type="string"> |
| <value>-25 C°</value> |
| </meta> |
| <meta name="max" type="string"> |
| <value>+45 C°</value> |
| </meta> |
| </metadata> |
| <constraints> |
| <minInclusive value="-25"/> |
| <maxInclusive value="45"/> |
| </constraints> |
| </attribute> |
| </attributes> |
| </resourceInfo> |
| <resourceInfo xsi:type="resourceInfoProperty" name="HUMIDITY" profile="temphum" |
| target="service1"> |
| <identifier xsi:type="stringContent">HUMIDITY</identifier> |
| <attributes> |
| <attribute name="value" type="float" modifiable="MODIFIABLE"> |
| <value>50</value> |
| <metadata> |
| <meta name="Description" type="string"> |
| <value>humidity sensor</value> |
| </meta> |
| <meta name="unit" type="string"> |
| <value>percentage</value> |
| </meta> |
| <meta name="min" type="string"> |
| <value>10 %</value> |
| </meta> |
| <meta name="max" type="string"> |
| <value>95 %</value> |
| </meta> |
| </metadata> |
| <constraints> |
| <minInclusive value="10"/> |
| <maxInclusive value="95"/> |
| </constraints> |
| </attribute> |
| <attribute name="accessible" type="boolean" modifiable="MODIFIABLE"> |
| <value>true</value> |
| </attribute> |
| </attributes> |
| </resourceInfo> |
| <devices> |
| <device identifier="sensor0" profile="temphum"/> |
| <device identifier="sensor1" profile="temphum"/> |
| <device identifier="sensor2" profile="temphum"/> |
| <device identifier="sensor3" profile="temphum"/> |
| <device identifier="sensor4" profile="temphum"/> |
| </devices> |
| </resourceInfos> |