Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements #108

Open
wants to merge 5 commits into
base: dev/e4.3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ The MQTT message will be translated to an LwM2M DISCOVER command and sent to the
```
- {?ResourceName}: String, LwM2M resource description, e.g. "Available Power Sources"
- {?ValueType}: String, can be: "Time", "String", "Integer", "Float", "Boolean", "Opaque", "Objlnk"
- {?Value}: Value of resource, depends on the {?ValueType}.
- {?Value}: Value of resource, depends on the {?ValueType}. Note that if {?ValueType} = "Opaque", {?Value} is base64 encoded.

- **The response of LwM2M will be converted to following MQTT message:**
- **Method:** PUBLISH
Expand Down Expand Up @@ -272,7 +272,7 @@ The MQTT message will be translated to an LwM2M DISCOVER command and sent to the
- {?ResourceName}: String, LwM2M resource description, e.g. "Available Power Sources"
- {?ResourcePath}: String, LwM2M resource full path. e.g. "3/0", "/3/0/0", "/3/0/6/0"
- {?ValueType}: String, can be: "Time", "String", "Integer", "Float", "Boolean", "Opaque", "Objlnk"
- {?Value}: Value of the resource, depends on "type".
- {?Value}: Value of the resource, depends on {?ValueType}. Note that if {?ValueType} = "Opaque", {?Value} is base64 encoded.

- **If {?MsgType} = "ack", "data" does not exists**

Expand Down
61 changes: 61 additions & 0 deletions lwm2m_xml/10241.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!--
MIT License
Copyright (c) 2018 AT&T
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
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.
-->

<LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openmobilealliance.org/tech/profiles/LWM2M.xsd">
<Object ObjectType="MODefinition">
<Name>HostDeviceInfo</Name>
<Description1><![CDATA[This LWM2M Object provides a range of host device related information which can be queried by the LWM2M Server. The host device is any integrated device with an embedded cellular radio module.]]></Description1>
<ObjectID>10241</ObjectID>
<ObjectURN>urn:oma:lwm2m:x:10241</ObjectURN>
<LWM2MVersion />
<ObjectVersion />
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Resources>
<Item ID="5905"><Name>Host Device Manufacturer</Name>
<Operations>R</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[Human readable host device manufacturer name]]></Description>
</Item>
<Item ID="5906"><Name>Host Device Model Number</Name>
<Operations>R</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[A host device model identifier (manufacturer specified string)]]></Description>
</Item>
<Item ID="5907"><Name>Host Device Unique ID</Name>
<Operations>R</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[The host device unique ID as assigned by an OEM, MNO, or other as the Device ID in the onboarding or manufacturing process.]]></Description>
</Item>
<Item ID="5908"><Name>Host Device Software Version</Name>
<Operations>R</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>String</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[Current software version of the host device. (manufacturer specified string).]]></Description>
</Item></Resources>
<Description2 />
</Object>
</LWM2M>
Loading