diff --git a/dtmi/demo/smartlightbulb-1.json b/dtmi/demo/smartlightbulb-1.json new file mode 100644 index 0000000..46d79e8 --- /dev/null +++ b/dtmi/demo/smartlightbulb-1.json @@ -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 + } + ] + } + } + ] +} \ No newline at end of file