-
Notifications
You must be signed in to change notification settings - Fork 5
RemoteController
Takayuki Hoshi edited this page May 31, 2019
·
4 revisions
スマートデバイスが保持する赤外線などの信号の送受信機能を提供するAPI。
| API | 概要 |
|---|---|
| GET /gotapi/remoteController | スマートデバイスが保持する赤外線などの信号を取得する。 |
| POST /gotapi/remoteController | スマートデバイスに対して赤外線などの信号送信リクエストを送る。 |
one-shot
スマートデバイスが保持する赤外線などの信号を取得する。
赤外線信号の仕様などについてはデバイスに依存する。
| 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|
| serviceId | string | Yes | サービスID。取得対象スマートデバイス |
| 論理名 | 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|---|
| 処理結果 | result | integer | Yes | 0:正常応答 0以外:異常応答 |
| システム名 | product | string | Yes | DeviceConnectシステムの名前。 |
| システムバージョン | version | string | Yes | DeviceConnectシステムのバージョン名。 |
| 署名 | hmac | string | No | レスポンスに対する署名。 アプリケーション側から事前にHMACキーを共有されていた場合は必須。 |
| メッセージ(赤外線など) | message | string | Yes | 赤外線などの信号。 |
{
"result" : 0,
"product" : "Example System",
"version" : "1.0.0",
"message" : "{data[18031,8755,1190,1190,1190,3341,1190,3341,1190,3341,1190,1190, 1190,3341,1190,3341,1190,3341,1190,3341,1190,3341,1190,3341,1190, 1190,1190,1190,1190,1190,1190,1190,1190,3341,1190,3341,1190,1190, 1190,3341,1190,1190,1190,1190,1190,1190,1190,1190,1190,1190,1190, 1190,1190,1190,1190,1190,1190,3341,1190,3341,1190,3341,1190,3341, 1190,3341,1190,65535,0,9379,18031,4400,1190]}"
}
one-shot
スマートデバイスに対して赤外線などの信号送信リクエストを送る。
赤外線信号の仕様などについてはデバイスに依存する。
| 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|
| serviceId | string | Yes | サービスID。取得対象スマートデバイス |
| message | string | Yes | メッセージ(赤外線など)。赤外線などの信号。 |
| 論理名 | 物理名 | データ型 | 必須 | 説明 |
|---|---|---|---|---|
| 処理結果 | result | integer | Yes | 0:正常応答 0以外:異常応答 |
| システム名 | product | string | Yes | DeviceConnectシステムの名前。 |
| システムバージョン | version | string | Yes | DeviceConnectシステムのバージョン名。 |
| 署名 | hmac | string | No | レスポンスに対する署名。 アプリケーション側から事前にHMACキーを共有されていた場合は必須。 |
{
"result" : 0,
"product" : "Example System",
"version" : "1.0.0"
}
- 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