Fiware: Issue when registering a service through IDAS -


i'm using idas. can register service through iot agent, if try using iota manager, seems can't due issue protocols. when try register it:

curl -x post 172.21.0.23:8091/iot/services \ -i  \ -h "content-type: application/json" \ -h "fiware-service: sanitysrvm" \ -h "fiware-servicepath: /sanitysspath" \ -d '{"services": [{ "apikey": "apikey", "token": "token", "cbroker": "http://127.0.0.1:1026", "entity_type": "thingsrv", "protocol": ["pdi-iota-ultralight"] }]}'   

i response:

http/1.1 400 bad request connection: close host: 172.21.0.23:8091 content-length: 94 content-type: application/json  {"reason":"the request not formed","details":"no exists protocol pdi-iota-ultralight"} 

i have checked protocols:

http://172.21.0.23:8091/iot/protocols 

but seems there none:

{ "count": 0,"protocols": []} 

is issue related, seems, protocol? can protocol wan't correctly defined when installing idas? how should define protocols?

thanks!

i think installed idas iot-agent-base-xxxxxxx, , not iot-agent-ul-xxxxxxx rpm package

i have running installation , installed follows (you may change dgit_version , dgit_commit values in cmake command build newer version if possible):

git clone https://github.com/telefonicaid/fiware-iotagent-cplusplus.git pwd cd fiware.... mkdir -p build/release cd build/release cmake -dgit_version=20527 -dgit_commit=217023407f25ed258043cfc00a46b6c05fb0b52c -dmqtt=on -dcmake_build_type=release ../../ make install make package 

the packages created in pack/linux/rpm/

rpm -i iot-agent-base-xxxxxxx rpm -i iot-agent-ul-xxxxxx 

idas installed in /usr/local/iot

hope helps you.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -