簡體   English   中英

Fiware:通過IDAS注冊服務時出現的問題

[英]Fiware: Issue when registering a service through IDAS

我正在使用IDAS。 我可以通過IoT代理注冊服務,但是如果嘗試使用iota管理器注冊服務,似乎由於協議問題而無法實現。 當我嘗試注冊時:

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"] }]}'  

我得到這個回應:

HTTP/1.1 400 Bad Request
Connection: close
Host: 172.21.0.23:8091
Content-Length: 94
Content-Type: application/json

{"reason":"The request is not well formed","details":"No exists protocol PDI-IoTA-UltraLight"}

我已經檢查了協議:

http://172.21.0.23:8091/iot/protocols

但是似乎沒有:

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

看起來這個問題與協議有關嗎? 安裝IDAS時,協議可能定義不正確嗎? 我應該如何定義協議?

謝謝!

我認為您剛剛安裝了IDAS iot-agent-base-xxxxxxx,而不是iot-agent-ul-xxxxxxx rpm軟件包

我有一個正在運行的安裝程序,並按以下步驟安裝(如果可能,您可以在cmake命令中更改DGIT_VERSION和DGIT_COMMIT值,以構建較新的版本):

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

軟件包將在pack / Linux / RPM /中創建

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

IDAS將安裝在/ usr / local / iot中

希望這對您有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM