-
Notifications
You must be signed in to change notification settings - Fork 8
ServiceInformation Profile
Onuzimoyr edited this page Nov 17, 2015
·
2 revisions
| API | 機能概要 |
|---|---|
| Service Information API | デバイスのサポートしているプロファイル一覧、ネットワークへの接続状態を取得する。 |
スマートフォンまたは周辺機器についての情報を提供するAPI。
なし
| インターフェース名称 | Version | 種別 |
|---|---|---|
| Service Information API | 2.0.0 | 同期I/F |
スマートフォンまたは周辺機器についての情報を提供するAPI。 サポートするプロファイル一覧、ネットワークへの接続状態を取得する。
| HTTPメソッド | URI |
|---|---|
| GET | /gotapi/serviceinformation |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 |
|---|---|---|---|---|
| サービスID | serviceId | string | - | 取得対象スマートデバイス |
| Content-Type | 形式 | HTTPステータス |
|---|---|---|
| application/json | JSON | 200 |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 | |
| 処理結果 | result | number | - | 0:正常応答 0以外:異常応答 |
|
| オブジェクト | connect | object | - | デバイスプラグインの接続状態。 | |
| 属性値 | wifi | boolean | - | WiFiの接続状態。 WiFiを提供できない場合は無し。 false:OFF true:ON |
|
| 属性値 | bluetooth | boolean | - | Bluetoothの接続状態。Bluetoothが提供できない場合は無し。 false:OFF true:ON |
|
| 属性値 | nfc | boolean | - | NFCの接続状態。NFCが提供できない場合は無し。 false:OFF true:ON |
|
| 属性値 | ble | boolean | - | BLEの接続状態。BLEが提供できない場合は無し。 false:OFF true:ON |
|
| サポートプロファイルリスト | supports | array | - | サポートしているプロファイル名の配列。 | |
GET http://localhost:4035/gotapi/serviceinformation?servieId=localhost.deviceconnect.org&accessToken=xxxxx
{
"product":"Device Connect Manager",
"version":"x.x",
"result":0,
"connect":{
"wifi":true
},
"supports":[
"system",
"battery",
"vibration"
]
}