You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs_src/design/adr/device-service/0021-invoking-functions.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ this is unintuitive.
58
58
}
59
59
```
60
60
61
-
Note: the `attributes` structure is analagous to `attributes` in a `deviceResource`. Each device service should document and implement a scheme of required attributes that will allow for selection of the relevant funtion. The function's `name` is intended for UI and logging purposes and should not be used for actual function selection on the device.
61
+
Note: the `attributes` structure is analagous to `attributes` in a `deviceResource`. Each device service should document and implement a scheme of required attributes that will allow for selection of the relevant funtion.
62
62
63
63
**Define MessageBus topics on which function call requests and replies are to be made**
64
64
@@ -102,9 +102,11 @@ or if a call fails
102
102
|--------|--------
103
103
| 0 | The operation was successful
104
104
| 1 | Parameters were missing, out of range or non-parsable
105
-
| 2 | The Device is DOWN or DISABLED
105
+
| 2 | The Device is DOWN or DISABLED (OperatingState / AdminState)
106
106
| 3 | No such device or function
107
107
| 100+ | Implementation-specific errors, defined for each Device Service
108
108
109
-
** The device SDKs will provide an API for the service implementations to implement these operations **
109
+
** Device SDK enhancement **
110
+
111
+
The device SDKs will handle the messagebus communcations and parameter marshalling. The generic errors defined above may be detected in this SDK code. The SDKs will define APIs for the individual device services to implement the function invocations.
0 commit comments