Cygnus订阅ngsi_version = 2未实现

时间:2017-12-21 09:00:39

标签: fiware-cygnus

我安装了cygnus this的followin docker图片。当我尝试按照教程example进行订阅时,我收到以下错误:

POST /v1/subscriptions&ngsi_version=2 not implemented

这是我的POST请求:

{
"subscription":{
    "description": "One subscription to rule them all",
    "subject": {
        "entities": [
            {
                "idPattern": ".*",
                "type": "Room"
            }
        ],
        "condition": {
            "attrs": [
                "temperature"
            ],
            "expression": {
                  "q": "temperature>40"
            }
        }
    },
    "notification": {
        "http": {
            "url": "http://localhost:5050"
        },
        "attrs": [
            "temperature",
            "humidity"
        ]
    },
    "duration": "P1M",
    "throttling": 5
},
"endpoint":{
    "host":"151.80.41.166",
    "port":"50001",
    "ssl":"false",
    "xauthtoken":"QsENv67AJj7blC2qJ0YvfSc5hMWYrs"
 }
}

我如何启用ngsi_version 2?

0 个答案:

没有答案