Skip to content

Health Profile

Akira-Sasaki edited this page Oct 6, 2015 · 3 revisions

目次

API 機能概要
Health HeartRate API デバイスの心拍数計測イベントを通知する。

機能概要

デバイスのHealth関連のイベントを通知するための機能。

参考API

https://www.bluetooth.org/en-us/specification/assigned-numbers/health-device-profile

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

概要

デバイスの心拍数計測イベントを通知する。

イベント情報

イベント名 Content-Type
/gotapi/health/heartrate application/json

メッセージ

論理名 物理名 データ型 省略 設定値
心拍数 heartRate number - 心拍数

メッセージサンプル

{
    "product":"Device Connect Manager",
    "version":"x.x",
    "hmac":"yyyyy",
    "serviceId": “device1.localhost.deviceconnect.org",
    “api”: “gotapi”,
    "profile" : “health”,
    "attribute" : "heartrate",
    "heartRate" : 90.1
}

Clone this wiki locally