Closed knolleary closed 1 year ago
@knolleary busy with this one now.
Question: As well as adding deviceId
I propose we also add deviceName
and deviceType
to msg.projectLink
Rationale: I may need to regenerate device.yml but dont want to modify flows to update the deviceId
- instead I want to use deviceName
since the named device "device-machine-1-monitor"
never changes and sometimes I want to use the device type for actioning messages from specific device types.
Yup - sounds good.
To help distinguish messages coming from multiple devices, we should include the
deviceId
asmsg.projectLink.deviceId
in the message sent by the Project In node.This will have to be passed across in the
userProperties
object of the message as we cannot determine it from the received topic.