-
Notifications
You must be signed in to change notification settings - Fork 8
RemoteController Profile
Ryo Mizuno edited this page Nov 2, 2016
·
3 revisions
| API | 機能概要 |
|---|---|
| RemoteController Get API | スマートデバイスが保持する赤外線などの信号を取得する。 |
| RemoteController Send API | スマートデバイスに対して赤外線などの信号送信依頼を送る。 |
スマートデバイスが保持する赤外線などの信号の送受信機能を提供するAPI。
なし
| インターフェース名称 | Version | 種別 |
|---|---|---|
| RemoteController Get API | 2.0.0 | 同期I/F |
スマートデバイスが保持する赤外線などの信号を取得する。
| HTTPメソッド | URI |
|---|---|
| GET | /gotapi/remoteController |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| サービスID | serviceId | string | - | 取得対象デバイス |
| Content-Type | 形式 | HTTPステータス |
|---|---|---|
| application/json | JSON | 200 |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| 処理結果 | result | number | 0:正常応答 0以外:異常応答 |
|
| メッセージ(赤外線など) | message | string | 赤外線などの信号。 |
GET http://localhost:4035/gotapi/remoteController?servieId=localhost.dconnect.com&accessToken=xxxx
{
"product":"Device Connect Manager",
"version":"x.x",
"result":0,
“message”:”{data[18031,8755,1190,1190,1190,3341,1190,3341,1190,3341,1190,1190,1190,3341,1190,3341,1190,334 1,1190,3341,1190,3341,1190,3341,1190,1190,1190,1190,1190,1190,1190,1190,1190,3341,1190,3341,1190,1190,1190,3 341,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]}”
}
| インターフェース名称 | Version | 種別 |
|---|---|---|
| RemoteController Send API | 2.0.0 | 同期I/F |
スマートデバイスに対して赤外線などの信号送信依頼を送る。
| HTTPメソッド | URI |
|---|---|
| POST | /gotapi/remoteController |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| サービスID | serviceId | string | - | 取得対象デバイス。 |
| メッセージ(赤外線など) | message | string | - | 赤外線などの信号。 |
| Content-Type | 形式 | HTTPステータス |
|---|---|---|
| application/json | JSON | 200 |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| 処理結果 | result | number | - | 0:正常応答 0以外:異常応答 |
PUT http://localhost:4035/gotapi/remoteController
| PUTデータ |
|---|
| serviceId=localhost.deviceconnect.org&pattern=100%2c%20100%2c%20100%2c%20100&accessToken=xxxxx&&message=%7Bdata %5B18031%2C8755%2C1190%2C1190%2C1190%2C3341%2C1190%2C3341%2C1190%2C3341%2C1190%2C1190 %2C1190%2C3341%2C1190%2C3341%2C1190%2C3341%2C1190%2C3341%2C1190%2C3341%2C1190%2C3341 %2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C3341%2C1190%2C3341% 2C1190%2C1190%2C1190%2C3341%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2 C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C1190%2C3341%2C1190%2C3341%2C 1190%2C3341%2C1190%2C3341%2C1190%2C3341%2C1190%2C65535%2C0%2C9379%2C18031%2C4400%2C11 90%5D%7D |
{
"product":"Device Connect Manager",
"version":"x.x",
"result":0
}