我在 CLOUD 上创建了我的实例,但是当尝试进行 POST 时,数据没有发送到 VM,我使用的数据有问题吗?
- 我在 Firefox 上使用 Rest Client。
这是代码的主体(Json):
{ "contextElements": [ { "type": "Room", "isPattern": "false", "id": "Room1", "attributes": [ { "name": "temperature", "type": "float", "value": "23" }, { "name": "pressure", "type": "integer", "value": "720" } ] } ], "updateAction": "APPEND" }
URL 是http://10.0.22x.6x:1026/NGSI10/updateContext
,标题是:
- 内容类型:应用程序/json
- 接受:应用程序/json