Replies: 2 comments 1 reply
-
We discussed before and there is a design for this, but we haven't implemented. The current workaround is to use a normal Set command to achieve that, but the developers and users need to know the contest. For example, to start the streaming in a USB camera: |
Beta Was this translation helpful? Give feedback.
-
OK. This also means it will be more difficult to support operations that take one or more parameters. |
Beta Was this translation helpful? Give feedback.
-
I asked this question quite a while ago. I'm asking again in case something has changed that I'm not aware of.
Can I call a function on a device using Device Commands? For example, if my device has a reset() function on it, can I call that reset() function?
The previous answer was No. To call reset(), I'd have to represent the reset() function as a Device Resource. For example creating a 'reset' device resource as type boolean with the expectation that setting it to 'true' will invoke the reset. This isn't really making a function call on a device. I consider this a workaround.
Beta Was this translation helpful? Give feedback.
All reactions