Skip to content

KeyEvent Profile

Onuzimoyr edited this page Nov 17, 2015 · 2 revisions

目次

API 機能概要
Key Down Event API デバイスのキーが押されたことを通知する。
Key Up Event API デバイスのキーが離されたことを通知する。

機能概要

デバイスのキーイベントが操作されたことを通知する機能。

参考API

なし

インターフェース名称 Version 種別
Key Down Event API 2.0.0 非同期I/F(イベントI/F)

概要

デバイスのキーが押されたことを通知する。

イベント情報

イベント名 Content-Type
/gotapi/keyevent/ondown application/json

メッセージ

論理名 物理名 データ型 省略 設定値
オブジェクト keyevent object - KeyEvent(object)
属性値 id number - 押されたKeyのID。
属性値 config string 押されたKeyのConfig

メッセージサンプル

{
    "product":"Device Connect Manager",
    "version":"x.x",
    "serviceId": “device1.localhost.deviceconnect.org",
    “api”: “gotapi”,
    "profile" : “keyevent”,
    "attribute" : "ondown",
    "sessionKey" : "0a93ac0aade4e046ed63eb24d1172f5f35c88ca60daa901547c28d5827cb418a5de1d7c5f9e62405",
    "keyevent" : {
        “id":525,
        "config":"play"
     }
}
インターフェース名称 Version 種別
Key Up Event API 2.0.0 非同期I/F(イベントI/F)

概要

デバイスのキーが話されたことを通知する。

イベント情報

イベント名 Content-Type
/gotapi/keyevent/onup application/json

メッセージ

論理名 物理名 データ型 省略 設定値
オブジェクト keyevent object - KeyEvent(object)
属性値 id number - 押されたKeyのID。
属性値 config string 押されたKeyのConfig

メッセージサンプル

{
    "product":"Device Connect Manager",
    "version":"x.x",
    "serviceId": “device1.localhost.deviceconnect.org",
    “api”: “gotapi”,
    "profile" : “keyevent”,
    "attribute" : "onup",
    "sessionKey" : "0a93ac0aade4e046ed63eb24d1172f5f35c88ca60daa901547c28d5827cb418a5de1d7c5f9e62405",
    "keyevent" : {
        “id":525,
        "config":"play"
     }
}

Clone this wiki locally