Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] Leshan Json format for execute type resources

Hi,

How should a resource of execute type be defined in a leshan json format?

For example, resource 2 of my test object below is an execute type so I use "operations": "E".

However, I get an error when starting the server?

Thank you


[

{

"name": "Test Object",

"id": 8194,

"instancetype": "multiple",

"mandatory": true,

"description": "",

"resourcedefs": [

{

"id": 1,

"name": "Power",

"operations": "RW",

"instancetype": "single",

"mandatory": true,

"type": "string",

"range": "",

"units": "",

"description": ""

},
{

"id": 2,

"name": "Execute",

"operations": "E",

"instancetype": "single",

"mandatory": true,

"type": "",

"range": "",

"units": "",

"description": ""

}

]

}

]

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263

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.


Back to the top