2017-02-21 3 views

答えて

0

はい、HTTP転送オプションが説明されている新しいgithub READMEセクションに従ってください。

乾杯、

0

すべてのデバイスには、連続/テンプレートのみが必要です。このような構成では、プロトコルがIoTA-JSONで、トランスポートがHTTPであることを指定する必要があります。要求は、JSONのIoTエージェントのnothboundインタフェースに送信されます。その後

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> ] 
     } 
    ] 
} 

、あなたは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> ] 
     } 
    ] 
} 

、あなたが作成することができます構成/テンプレートは、トランスポートを指定せずに、つまり、構成/テンプレートは、トランスポートとは独立して、すべてのJsonベースのエージェントにのみ関連し、Jsonベースのデバイスをプロビジョニングするときはトランスポートを指定します。

関連する問題