Skip to content

Commit

Permalink
Add more models to client-demo (as now we can create object dynamically)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Feb 7, 2020
1 parent d810863 commit 8fbb0bd
Show file tree
Hide file tree
Showing 86 changed files with 9,368 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,33 @@ public class LeshanClientDemo {

private static final Logger LOG = LoggerFactory.getLogger(LeshanClientDemo.class);

private final static String[] modelPaths = new String[] { "3303.xml" };
// /!\ This class is a COPY of org.eclipse.leshan.server.demo.LeshanServerDemo.modelPaths /!\
// TODO create a leshan-demo project ?
private final static String[] modelPaths = new String[] { "31024.xml",

"10241.xml", "10242.xml", "10243.xml", "10244.xml", "10245.xml", "10246.xml", "10247.xml",
"10248.xml", "10249.xml", "10250.xml",

"2048.xml", "2049.xml", "2050.xml", "2051.xml", "2052.xml", "2053.xml", "2054.xml",
"2055.xml", "2056.xml", "2057.xml",

"3200.xml", "3201.xml", "3202.xml", "3203.xml", "3300.xml", "3301.xml", "3302.xml",
"3303.xml", "3304.xml", "3305.xml", "3306.xml", "3308.xml", "3310.xml", "3311.xml",
"3312.xml", "3313.xml", "3314.xml", "3315.xml", "3316.xml", "3317.xml", "3318.xml",
"3319.xml", "3320.xml", "3321.xml", "3322.xml", "3323.xml", "3324.xml", "3325.xml",
"3326.xml", "3327.xml", "3328.xml", "3329.xml", "3330.xml", "3331.xml", "3332.xml",
"3333.xml", "3334.xml", "3335.xml", "3336.xml", "3337.xml", "3338.xml", "3339.xml",
"3340.xml", "3341.xml", "3342.xml", "3343.xml", "3344.xml", "3345.xml", "3346.xml",
"3347.xml", "3348.xml", "3349.xml", "3350.xml",

"Communication_Characteristics-V1_0.xml",

"LWM2M_Lock_and_Wipe-V1_0.xml", "LWM2M_Cellular_connectivity-v1_0.xml",
"LWM2M_APN_connection_profile-v1_0.xml", "LWM2M_WLAN_connectivity4-v1_0.xml",
"LWM2M_Bearer_selection-v1_0.xml", "LWM2M_Portfolio-v1_0.xml", "LWM2M_DevCapMgmt-v1_0.xml",
"LWM2M_Software_Component-v1_0.xml", "LWM2M_Software_Management-v1_0.xml",

"Non-Access_Stratum_NAS_configuration-V1_0.xml" };

private static final int OBJECT_ID_TEMPERATURE_SENSOR = 3303;
private final static String DEFAULT_ENDPOINT = "LeshanClientDemo";
Expand Down
50 changes: 50 additions & 0 deletions leshan-client-demo/src/main/resources/models/10241.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?><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 is assigned by AT&T as the “Device ID” in the onboarding tool and will be stored in]]></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

0 comments on commit 8fbb0bd

Please sign in to comment.