基於這篇文章(Fiware - Context broker: Issue with NGSIv2 subscriptions)幾個月前它正在討論Cygnus是否支持NGSIv2。有人評論說,這個問題是時間表,但尚未實施。天鵝座已經接受NGSI2嗎?
問題:它已經實現了嗎?我們怎麼知道?
我的困惑提醒,因爲當創建基於NGSIv2的訂閱和成功創建的消息彈出結果(即201)時,但仍然無法監視我的訂閱記錄到Orion中。
我創造我的訂閱像這樣:
Content-Type:application/json
Accept: application/json
Fiware-Service: test
Fiware-ServicePath: /device
{
"description": "One subscription to rule them all",
"subject": {
"entities": [ {
"idPattern": ".*",
"type": "smarthphone" } ],
"condition": {
"attrs": [ "battery" ],
"expression": { "q": "battery!=0" }
}
},
"notification": {
"http": {
"url": "<MY COSMOS IP>:5050/notify" },
"attrs": [ "battery" ]
},
"expires": "2120-04-05T14:00:00.00Z",
"throttling": 1
}
而這就是我得到:
Connection: Keep-Alive
Content-Length: 0
Location: /v2/subscriptions/587c62fcfebdbe5f74bad77b
Fiware-Correlator: f9a96bd0-dbb1-11e6-93ea-0242ac110004
Date: Mon, 16 Jan 2017 06:06:52 GMT
但是當我找回這種訂閱但這並沒有顯示:
.../v2/subscriptions/587c62fcfebdbe5f74bad77b
任何暗示我做錯了什麼?
順便說一句,我也嘗試了什麼在這個網站推薦(http://fiware-cygnus.readthedocs.io/en/1.5.0/cygnus-common/installation_and_administration_guide/install_with_docker/)但仍然沒有生活的信號我的訂閱。我持有天鵝座版本1.6.0,這意味着它不應該是問題,對吧? – netzahdzc
當您嘗試使用'.../v2/subscriptions/587c62fcfebdbe5f74bad77b'檢索訂閱時,您收到了什麼信息? – Dalton
我沒有錯誤,它顯示了一個沒有訂閱記錄的空陣列 – netzahdzc