-
Notifications
You must be signed in to change notification settings - Fork 8
AtmosphericPressure Profile
TakayukiHoshi1984 edited this page Mar 27, 2017
·
2 revisions
| API | 機能概要 |
|---|---|
| Atmospheric Pressure Get API | 気圧を取得します。 |
気圧の値を取得する機能を提供するAPI。
| インターフェース名称 | Version | 種別 |
|---|---|---|
| Atmospheric Pressure Get API | 2.0.0 | 同期I/F |
スマートデバイスの気圧情報を取得する。
| HTTPメソッド | URI |
|---|---|
| GET | /gotapi/atmosphericPressure |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| サービスID | serviceId | string | - | 取得対象スマートデバイス |
| Content-Type | 形式 | HTTPステータス |
|---|---|---|
| application/json | JSON | 200 |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| 処理結果 | result | number | - | 0:正常応答 0以外:異常応答 |
| 気圧 | atmosphericPressure | number | - | 気圧 単位: ヘクトパスカル(hPa) |
| タイムスタンプ | timeStamp | number | - | 気圧を計測した時間 |
| タイムスタンプ文字列 | timeStampString | string | - | タイムスタンプを「YYYYMMDDHHMMSS.sss+/- HHMM」の形式で返す。 |
GET http://localhost:4035/gotapi/atmosphericPressure?serviceId=linking.xxxxxxx
{
"product":"Device Connect Manager",
"version":"x.x",
"result": 0,
"atmosphericPressure": 1016.12,
"timeStamp": 1431856940275,
"timeStampString": "20150517100220.000-0000"
}