Download OpenAPI specification:Download
ステータスの更新を行う
ステータスは以下の値にセット可能
status | string Enum: "in" "out" "danger" |
{- "status": "in"
}
{- "status": "in"
}
センサーデータをアップデートする
temperature | number 温度 (℃) |
humidity | number 湿度 (%) |
pressure | number 気圧 (hPa) |
{- "temperature": 28.5,
- "humidity": 84.2,
- "pressure": 1000
}
{- "temperature": 28.5,
- "humidity": 84.2,
- "pressure": 1000,
- "lastUpdate": "2019-08-24T14:15:22Z"
}
デバイスからスマホに対してアラートを送信する
デバイスはidによって識別される
json形式で以下のようなメッセージを送信できる
{
"message": "浴室で大きな音が検知されました"
}
message | string |
{- "message": "string"
}
{- "message": "string"
}