使用 JSON/MQTT IOT 代理 FIWARE 提供设备

Provision device with JSON/MQTT IOT AGENT FIWARE

curl -X POST -vv -H "Fiware-Service: myHome" -H "Fiware-ServicePath: /environment" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{ "devices":[ { "device_id": "0000000000000000", "entity_name": "BedRoomSensor", "entity_type": "multiSensor", "attributes": [ { "object_id": "t", "name": "Temperature", "type": "celsius" }, { "object_id": "h", "name": "Humidity", "type": "degrees" } ] } ] } 'http://localhost:4041/iot/devices'

我执行上面的 curl 命令以提供我的 device.However 它没有显示任何内容并且命令永远不会结束。 我误会了什么?

我已经按照本指南的前两个步骤解决了问题:http://fiwaretourguide.readthedocs.io/en/latest/connection-to-the-internet-of-things/how-to-read-measures-captured-from-iot-devices/ 在分步指南中,没有描述这些步骤。 在第二步中,我将协议字段更改为 "MQTT"。 现在,每当我从我的设备请求措施时,我都会采用正确的值。