Fiware 通过HTTP传输协议使用IoT代理JSON
我想将IoT代理JSON()与HTTP传输协议一起使用,而不是使用MQTT。可能吗?我怎么做Fiware 通过HTTP传输协议使用IoT代理JSON,fiware,Fiware,我想将IoT代理JSON()与HTTP传输协议一起使用,而不是使用MQTT。可能吗?我怎么做 谢谢 是的,您可以这样做,只需遵循新的github自述文件,其中解释了HTTP传输选项 干杯,您只需要为所有设备提供一个连接/模板。这种配置必须指定协议为IoTA JSON,传输为HTTP。请求被发送到Json IoT代理的NOTHBOND接口: POST http://iota_host:iota_port/iot/services Fiware-Service: <service> Fi
谢谢 是的,您可以这样做,只需遵循新的github自述文件,其中解释了HTTP传输选项
干杯,您只需要为所有设备提供一个连接/模板。这种配置必须指定协议为
IoTA JSON
,传输为HTTP
。请求被发送到Json IoT代理的NOTHBOND接口:
POST http://iota_host:iota_port/iot/services
Fiware-Service: <service>
Fiware-ServicePath: <subservice>
{
"services": [
{
"entity_type": "<default_entity_type>",
"protocol": "IoTA-JSON",
"transport": "HTTP",
"apikey": "<api_key>",
"attributes": [ "<common_active_attrs_if_any>" ],
"lazy": [ <common_lazy_attrs_if_any> ],
"commands": [ <common_commands_if_any> ],
"static_attributes": [ <common_static_attrs_if_any> ]
}
]
}
POSThttp://iota_host:iota_port/iot/services
Fiware服务:
Fiware服务路径:
{
“服务”:[
{
“实体类型”:“,
“协议”:“物联网JSON”,
“传输”:“HTTP”,
“apikey”:“,
“属性”:[“”],
“懒惰”:[],
“命令”:[],
“静态_属性”:[]
}
]
}
之后,您将能够使用Http传输配置基于Json的设备:
POST http://iota_host:iota_port/iot/devices
Fiware-Service: <service>
Fiware-ServicePath: <subservice>
{
"devices": [
{
"device_id": "<device_id>",
"entity_name": "<entity_name>",
"entity_type": "<alternative_entity_type>",
"attributes": [ <additional_active_attrs_if_any> ],
"lazy": [ <additional_lazy_attrs_if_any> ],
"commands": [ <additional_commands_if_any> ],
"static_attributes": [ <additional_static_attrs_if_any> ]
}
]
}
POSThttp://iota_host:iota_port/iot/devices
Fiware服务:
Fiware服务路径:
{
“设备”:[
{
“设备id”:“,
“实体名称”:“,
“实体类型”:“,
“属性”:[],
“懒惰”:[],
“命令”:[],
“静态_属性”:[]
}
]
}
甚至,您也可以在不指定传输的情况下创建配置/模板,即配置/模板仅与所有基于Json的代理相关,与它们的传输无关,然后在配置基于Json的设备时,指定传输