Skip to content

Commit

Permalink
Merge pull request #3 from iotmodels/lightbulb
Browse files Browse the repository at this point in the history
adds lightbulb 2
  • Loading branch information
rido-min authored Oct 3, 2023
2 parents 6127da4 + 47255cc commit a3a568a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions dtmi/demo/smartlightbulb-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:demo:smartlightbulb;1",
"@type": "Interface",
"displayName": "smartlightbulb",
"contents": [
{
"@type": "Telemetry",
"name": "batteryLife",
"schema": "integer"
},
{
"@type": "Command",
"name": "blink",
"request": {
"name": "blinkTimes",
"schema": "integer"
}
},
{
"@type": "Property",
"name": "lastBatteryReplacement",
"schema": "dateTime"
},
{
"@type": "Property",
"name": "lightState",
"writable": true,
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "On",
"enumValue": 1
},
{
"name": "Off",
"enumValue": 0
}
]
}
}
]
}

0 comments on commit a3a568a

Please sign in to comment.