Skip to content

LIBCSDK - PUT request with Integer Array for a device service #39

Closed Answered by iain-anderson
vijay-hcl-epl asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vijay-hcl-epl
Comment options

@iain-anderson
Comment options

@vijay-hcl-epl
Comment options

Answer selected by vijay-hcl-epl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants