I just stumbled over your project. I think it's a great idea to use DTDL for data simulators!
dbug: IoT.Simulator.Services.DeviceSimulationService[0]
08/23/2021 16:30:41::logType:c2dmessages::simulated-device::Device listening to cloud to device messages.
{
"@id": "dtmi:avnet:mt3620Starterkit;1",
"@type": "Interface",
"displayName": "StarterKitOutOfBoxExample",
"@context": "dtmi:dtdl:context;2",
"description": "Implements the interface for the Avnet Azure Sphere Starter Kit Out of Box example",
"contents": [
{
"@type": "Telemetry",
"description": "WiFi Received Signal Strength",
"displayName": "WiFi Received Signal Strength",
"name": "rssi",
"schema": "double"
}]
}
It works and produces telemetry data. However, if the original value of the @type
property is used in the minimal example above (i.e. ["Telemetry"]
as an array), it does not work and shows the above behavior.