HI All,
I am trying to send a configuration parameter to a THING using the REST API. The parameter is a user code, which is between 4 and 10 digits. I am able to do this successfully, however when I do (in this case to a Zwave door lock) the REST API is appending a
.0
at the end.
The curl command is:
curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" -d "{'usercode_code_5':1111,'usercode_label_5':Max}" "http://192.168.0.3:8080/rest/things/zwave%3Adevice%3Aa1562d1c%3Anode28/config"
When I check in Habmin or PaperUI for the Thing, I can see it has .0 at the end. I thought potentially I needed to pad this so when I add 6 x Zero’s, it then gives me a HEX code. Instead of 1111, it displays
31 31 31 31 3E 30
Has anyone seen this or know how to remove the
.0
appending?
Thanks