LIBCSDK - PUT request with Integer Array for a device service #39
-
Hi EdgeX team,
To double check, I executed the random device service given as a example in https://github.com/edgexfoundry/device-sdk-c/tree/508af3997b99b63bbc6444d3a4c84739e7448765/src/c/examples/random. I modified the device profile with "valueType": "Int8Array" . It also gave the same behavior(device service crashed) when I sent PUT request with integer array. Please let me know how to send PUT request with integer array or any other way to send multiple parameters in the PUT request. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's a C-SDK bug. It is still expecting the old format for array data where each element is a string. You can work around this by sending Edit: actually 435 should fail as an Int8 value |
Beta Was this translation helpful? Give feedback.
That's a C-SDK bug. It is still expecting the old format for array data where each element is a string. You can work around this by sending
'{"wrres" : "[\"435\"]"}'
I'm working on an update that changes some of the parsing code - I'll test that this works properly as part of that update (including being more robust with unexpected data)
Edit: actually 435 should fail as an Int8 value