|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- MIT License |
| 4 | +
|
| 5 | +Copyright (c) 2018 IPSO. |
| 6 | +
|
| 7 | +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
| 8 | +
|
| 9 | +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
| 10 | +
|
| 11 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> |
| 12 | + |
| 13 | +<LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openmobilealliance.org/tech/profiles/LWM2M.xsd"> |
| 14 | + |
| 15 | + <Object ObjectType="MODefinition"> |
| 16 | + <Name>Digital Input</Name> |
| 17 | + <Description1>Generic digital input for non-specific sensors</Description1> |
| 18 | + <ObjectID>3200</ObjectID> |
| 19 | + <ObjectURN>urn:oma:lwm2m:ext:3200</ObjectURN> |
| 20 | + <LWM2MVersion>1.0</LWM2MVersion> |
| 21 | + <ObjectVersion>1.0</ObjectVersion> |
| 22 | + <MultipleInstances>Multiple</MultipleInstances> |
| 23 | + <Mandatory>Optional</Mandatory> |
| 24 | + <Resources> |
| 25 | + <Item ID="5500"> |
| 26 | + <Name>Digital Input State</Name> |
| 27 | + <Operations>R</Operations> |
| 28 | + <MultipleInstances>Single</MultipleInstances> |
| 29 | + <Mandatory>Mandatory</Mandatory> |
| 30 | + <Type>Boolean</Type> |
| 31 | + <RangeEnumeration></RangeEnumeration> |
| 32 | + <Units></Units> |
| 33 | + <Description>The current state of a digital input.</Description> |
| 34 | + </Item> |
| 35 | + <Item ID="5501"> |
| 36 | + <Name>Digital Input Counter</Name> |
| 37 | + <Operations>R</Operations> |
| 38 | + <MultipleInstances>Single</MultipleInstances> |
| 39 | + <Mandatory>Optional</Mandatory> |
| 40 | + <Type>Integer</Type> |
| 41 | + <RangeEnumeration></RangeEnumeration> |
| 42 | + <Units></Units> |
| 43 | + <Description>The cumulative value of active state detected.</Description> |
| 44 | + </Item> |
| 45 | + <Item ID="5502"> |
| 46 | + <Name>Digital Input Polarity</Name> |
| 47 | + <Operations>RW</Operations> |
| 48 | + <MultipleInstances>Single</MultipleInstances> |
| 49 | + <Mandatory>Optional</Mandatory> |
| 50 | + <Type>Boolean</Type> |
| 51 | + <RangeEnumeration></RangeEnumeration> |
| 52 | + <Units></Units> |
| 53 | + <Description>The polarity of the digital input as a Boolean (0 = Normal, 1= Reversed)</Description> |
| 54 | + </Item> |
| 55 | + <Item ID="5503"> |
| 56 | + <Name>Digital Input Debounce</Name> |
| 57 | + <Operations>RW</Operations> |
| 58 | + <MultipleInstances>Single</MultipleInstances> |
| 59 | + <Mandatory>Optional</Mandatory> |
| 60 | + <Type>Integer</Type> |
| 61 | + <RangeEnumeration></RangeEnumeration> |
| 62 | + <Units>ms</Units> |
| 63 | + <Description>The debounce period in ms. .</Description> |
| 64 | + </Item> |
| 65 | + <Item ID="5504"> |
| 66 | + <Name>Digital Input Edge Selection</Name> |
| 67 | + <Operations>RW</Operations> |
| 68 | + <MultipleInstances>Single</MultipleInstances> |
| 69 | + <Mandatory>Optional</Mandatory> |
| 70 | + <Type>Integer</Type> |
| 71 | + <RangeEnumeration>1-3</RangeEnumeration> |
| 72 | + <Units></Units> |
| 73 | + <Description>The edge selection as an integer (1 = Falling edge, 2 = Rising edge, 3 = Both Rising and Falling edge).</Description> |
| 74 | + </Item> |
| 75 | + <Item ID="5505"> |
| 76 | + <Name>Digital Input Counter Reset</Name> |
| 77 | + <Operations>E</Operations> |
| 78 | + <MultipleInstances>Single</MultipleInstances> |
| 79 | + <Mandatory>Optional</Mandatory> |
| 80 | + <Type></Type> |
| 81 | + <RangeEnumeration></RangeEnumeration> |
| 82 | + <Units></Units> |
| 83 | + <Description>Reset the Counter value.</Description> |
| 84 | + </Item> |
| 85 | + <Item ID="5750"> |
| 86 | + <Name>Application Type</Name> |
| 87 | + <Operations>RW</Operations> |
| 88 | + <MultipleInstances>Single</MultipleInstances> |
| 89 | + <Mandatory>Optional</Mandatory> |
| 90 | + <Type>String</Type> |
| 91 | + <RangeEnumeration></RangeEnumeration> |
| 92 | + <Units></Units> |
| 93 | + <Description>The application type of the sensor or actuator as a string, for instance, “Air Pressure”</Description> |
| 94 | + </Item> |
| 95 | + <Item ID="5751"> |
| 96 | + <Name>Sensor Type</Name> |
| 97 | + <Operations>R</Operations> |
| 98 | + <MultipleInstances>Single</MultipleInstances> |
| 99 | + <Mandatory>Optional</Mandatory> |
| 100 | + <Type>String</Type> |
| 101 | + <RangeEnumeration></RangeEnumeration> |
| 102 | + <Units></Units> |
| 103 | + <Description>The type of the sensor (for instance PIR type)</Description> |
| 104 | + </Item> |
| 105 | + </Resources> |
| 106 | + <Description2></Description2> |
| 107 | + </Object> |
| 108 | +</LWM2M> |
0 commit comments