edgex-ui-go
#309
Replies: 2 comments 1 reply
-
I can't parse your json profile, please upload it again. And, you should locate the code line number by the sdk or device service. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For the first question, do you encounter issues if you use edgex-core-command REST API directly? For the second question, GET API doesn't support the payload, so there is not parameter to retrieve. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Edgex's team,
I am working with EdgeX (docker images) (I used latest images 3.1.1, but not for edgex-ui-go(latest 3.1.0)
My question is related on deviceCommands on edgex UI, and on c-sdk
First question, issue
Here a snippet of my json profile file:
....
"deviceCommands":
[
{
"name": "test",
"readWrite": "RW",
"isHidden":false,
"resourceOperations":
[
{ "deviceResource": "id" },
{ "deviceResource": "param1" }
]
}
],
"deviceResources":
[
{
"name": "id",
"isHidden":false,
"attributes": { "parameter": "id"},
"properties": { "valueType": "String", "readWrite": "RW"}
},
{
"name": "param1",
"isHidden":true,
"attributes": { "parameter": "param1" },
"properties": { "valueType": "Uint8", "readWrite": "RW"}
}
]
}
If I put the value type other than string (i.e. Uint8) The edgex-ui-go (try button) send the request to the edgex-code-command with a json string, instead of int, so the edgex-core-command failed to parse the data (Unable to parse .... for param1
Second question with the c-sdk, on the gethandler callback, how to retrieve the parameter for a get? with a put and this signature (devsdk_handle_put) we have *values[], so it's not a problem, but for the get method (devsdk_handle_get typedef) I don't know how to retrieve all get parameters
Any suggestion, helps, will be appreciate
Thanks a lot
Regards
Beta Was this translation helpful? Give feedback.
All reactions