fiware - iotagent-json tutorial error -


during tutorial: https://github.com/telefonicaid/iotagent-json/blob/master/docs/stepbystep.md

when execute curl:

curl -x post -h "content-type: application/json" -h "accept: application/json" -h "fiware-service: myhome" -h "fiware-servicepath: /environment" -h "cache-control: no-cache" -d '{ "value" : "300" }' 'http://localhost:1026/v1/contextentities/livingroomsensor/attrs/sleeptime' 

i'm getting error response:

{ "orionerror" : { "code" : "400", "reasonphrase" : "bad request", "details" : "service not found" } } 

how fix this?

cumps

it seems "mixing" url styles ngsiv1 , ngsiv2 :) mean, should either:

/v2/entities/livingroomsensor/attrs/sleeptime 

or

/v1/contextentities/livingroomsensor/attributes/sleeptime 

my recomendation use ngsiv2, more powerfull, flexible , simple version of context management api orion context broker provides.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -