1
で使用するクエリ文字列現在、「=」記号はオリオンで禁止されています http://fiware-orion.readthedocs.io/en/1.5.0/user/forbidden_characters/index.htmlFIWAREオリオン:サブスクリプションペイロード
しかし、これは、クエリ文字列を使用してサブスクリプションを作成する防ぎ:
$ (curl broker.waziup.io/v1/subscribeContext -s -S --header 'Content-Type: application/json' \
--header 'Accept: application/json' --header 'Fiware-Service:waziup' --header 'Fiware-ServicePath:/TEST' -d @- | python -mjson.tool) <<EOF
{
"entities": [
{
"type": "SensingDevice",
"isPattern": "false",
"id": "Sensor1"
}
],
"attributes": [
"temperature"
],
"reference": "http://localhost/v1/sms/send?contact=0039&msg=Sensor1",
"duration": "P1M",
"notifyConditions": [
{
"type": "ONCHANGE",
"condValues": [
"temperature"
]
}
],
"throttling": "PT1S"
}
EOF
結果で:
{
"subscribeError": {
"errorCode": {
"code": "400",
"details": "Illegal value for JSON field",
"reasonPhrase": "Bad Request"
}
}
}
クエリ文字列は、パラメータをコールバックサーバーに渡すために使用されます(他の方法はありません)。 これはなんですか?