Hi Folks,
I have a wakaama client talking to a Leshan Client. I have created a custom object and created a model of the object in json format. I then start Leshan with this object
mode by using the –m command line option.
I would like to better understand the execute resource type both in terms of the LWM2M protocol and its implementation in Leshan and wakaama.
I have three questions:
1.
Below is the json for the Wakaama 1024 object. If you created an ‘execute’ type resource in your custom object, how to you specify this in the json model? For example – how would I make “My resource 3” an execute
type? I tried using "operations": "E and "type": "execute". I want the execute symbol for a resource to appear on the Leshan UI.
2.
In the Device Object, the resources factory reset and reset error code are of type execute. Could somebody provide an example of a parameter that I would pass to these?
3.
In the Wakaama client what happens when you excute the ‘Reset Error Code’ resource? What parameter would you pass here?
Apologies if these questions are basic but after reading the documents and code it is not that clear to me,
Thank you
John
json for the Wakaama 1024 object:
[
{
"name": "My Custom Object",
"id": 1024,
"instancetype": "multiple",
"mandatory": true,
"description": "",
"resourcedefs": [
{
"id": 1,
"name": "My resource 1",
"operations": "RW",
"instancetype": "single",
"mandatory": true,
"type": "integer",
"range": "",
"units": "",
"description": ""
},
{
"id": 3,
"name": "My resource 3",
"operations": "RW",
"instancetype": "single",
"mandatory": true,
"type": "float",
"range": "",
"units": "",
"description": ""
}
]
}
]
This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.