-
Notifications
You must be signed in to change notification settings - Fork 5
AtmosphericPressure
Takayuki Hoshi edited this page May 31, 2019
·
5 revisions
気圧の値を取得する機能を提供するAPI。
| API | 概要 |
|---|---|
| GET /gotapi/atmosphericPressure | スマートデバイスの気圧情報を取得する。 |
one-shot
スマートデバイスの気圧情報を取得する。
スマートデバイスで測定した気圧を返す。失敗した場合はエラーを返す。
| 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|
| serviceId | string | Yes | サービスID。取得対象スマートデバイス |
| 論理名 | 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|---|
| 処理結果 | result | integer | Yes | 0: 正常応答 0以外: 異常応答 |
| システム名 | product | string | Yes | DeviceConnectシステムの名前。 |
| システムバージョン | version | string | Yes | DeviceConnectシステムのバージョン名。 |
| 署名 | hmac | string | No | レスポンスに対する署名。 アプリケーション側から事前にHMACキーを共有されていた場合は必須。 |
| 気圧 | atmosphericPressure | float | Yes | 気圧 単位: ヘクトパスカル(hPa) |
| 気圧のタイムスタンプ | timeStamp | long | No | 測定が行われた測定時間。ミリ秒のUnixタイムスタンプで返す。 |
| 気圧のタイムスタンプ文字列 | timeStampString | dateTime | No | タイムスタンプと同じタイムスタンプを RFC3339「yyyy-MM-dd''T''HH:mm:ssZZZZZ」の形式で返す。 |
{
"result" : 0,
"product" : "Example System",
"version" : "1.0.0",
"atmosphericPressure" : 1016.12,
"timeStamp" : 1431856940275,
"timeStampString" : "2015-05-17T10:02:20+09:00"
}
- Swagger 定義
-
Device Connect API リファレンス
- AirConditioner
- AtmosphericPressure
- Authorization
- Availability
- Battery
- Camera
- Canvas
- Connection
- Device
- DeviceOrientation
- DriveController
- Ecg
- EchonetLite
- File
- FileDescriptor
- Geolocation
- Gpio
- Health
- HumanDetection
- Humidity
- Illuminance
- KeyEvent
- Light
- MediaPlayer
- MediaStreamRecording
- MessageHook
- Notification
- OmnidirectionalImage
- Phone
- PoseEstimation
- Power
- PowerMeter
- Proximity
- RemoteController
- ServiceDiscovery
- ServiceInformation
- Setting
- Sphero
- StressEstimation
- System
- Temperature
- Touch
- Tv
- Vibration
- VideoChat
- WalkState