Difference between revisions of "Edge Gateway Http Adapter"
From Datonis
(Tag: Visual edit) |
(Tag: Visual edit) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Datonis Edge Gateway|Edge Gateway Home]] > ''' | + | [[Datonis Edge Gateway|Edge Gateway Home]] > '''HTTP Adapter''' |
− | == | + | == HTTP Protocol Connection == |
{| class="wikitable" | {| class="wikitable" | ||
|url_path | |url_path | ||
Line 8: | Line 8: | ||
|} | |} | ||
− | == | + | == HTTP Read Tag == |
{| class="wikitable" | {| class="wikitable" | ||
|tag_id | |tag_id | ||
Line 16: | Line 16: | ||
|field | |field | ||
|String | |String | ||
− | |This is field or property | + | |This is field or property key of the JSON data that is posted to the server. e.g. In below sample, field values are 'temperature' and 'humidity'. |
|} | |} | ||
− | == | + | == JSON data format that is posted to server == |
{ | { | ||
− | " | + | "temperature":35.0, |
− | + | "humidity":12.0 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | Or | ||
+ | [{ | ||
+ | "temperature":34.0, | ||
+ | "humidity":22.0 | ||
+ | }, | ||
+ | { | ||
+ | "temperature":45.0, | ||
+ | "humidity":32.0 | ||
+ | }, | ||
+ | { | ||
+ | "temperature":85.0, | ||
+ | "humidity":82.0 | ||
+ | }] |
Latest revision as of 07:10, 7 June 2018
Edge Gateway Home > HTTP Adapter
HTTP Protocol Connection
url_path | String | This is the relative path of the Gateway server where data requests can be posted e.g. /samplePath. The full path to post data will be like https://127.0.0.1:8443/samplePath |
HTTP Read Tag
tag_id | String | Unique tag id defined in the context of the current thing_config. This is used further in metric_mappings or derived_tags or scan_tag_ids or monitor_tag_ids to refer to this tag value. |
field | String | This is field or property key of the JSON data that is posted to the server. e.g. In below sample, field values are 'temperature' and 'humidity'. |
JSON data format that is posted to server
{ "temperature":35.0, "humidity":12.0 }
Or
[{ "temperature":34.0, "humidity":22.0 }, { "temperature":45.0, "humidity":32.0 }, { "temperature":85.0, "humidity":82.0 }]