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

Draft: LwM2M Device Object model. #57

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
15 changes: 9 additions & 6 deletions sdfObject/sdfthing-oma-device.sdf.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"label": "Device",
"description": "This LwM2M Object provides a range of device related information which can be queried by the LwM2M Server, and a device reboot and factory reset function.",
"sdfRequired": [
"#/sdfObject/Device/sdfAction/",
"#/sdfObject/Device/sdfAction/Reboot",
"#/sdfObject/Device/sdfProperty/Error_Code",
"#/sdfObject/Device/sdfProperty/Supported_Binding_and_Modes"
],
Expand Down Expand Up @@ -135,6 +135,14 @@
"description": "Total amount of storage space which can store data and software in the LwM2M Device (expressed in kilobytes). Note: 1 kilobyte corresponds to 1000 bytes.",
"writable": false,
"type": "integer"
},
"ExtDevInfo": {
"label": "ExtDevInfo",
"description": "Reference to external \"Device\" object instance containing information. For example, such an external device can be a Host Device, which is a device into which the Device containing the LwM2M client is embedded. This Resource may be used to retrieve information about the Host Device.",
"sdfType": "link",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! To enable using properties quality, just add also quality
"type" : "object"
(Yes, we need to update the schema to catch that. Thanks!)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

"properties": {
"href": { "type": "string"}
}
}
},
"sdfAction": {
Expand Down Expand Up @@ -186,11 +194,6 @@
"unit": "mA"
}
}
},
"ExtDevInfo": {
"label": "ExtDevInfo",
"description": "Reference to external \"Device\" object instance containing information. For example, such an external device can be a Host Device, which is a device into which the Device containing the LwM2M client is embedded. This Resource may be used to retrieve information about the Host Device.",
"sdfRef": ""
}
}
}
Expand Down