APP发送交换运动数据开始命令
App下发的json字段:
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| day | int | 开始时间 日 |
| hour | int | 开始时间 时 |
| minute | int | 开始时间 分 |
| second | int | 开始时间 秒 |
| sport_type | int | 运动类型 |
| target_type | int | 运动目标 0:无目标 1:重复次数 单位:次 2:距离 单位:米 3:卡路里 单位:大卡 4:时长 单位:分钟 5:步数 单位:步 |
| target_value | int | 目标值 |
| force_start | int | 强制开始 1:强制开始有效, 0:强制开始无效(只有用户可以使用) |
| vo2max | int | 最大摄氧量 单位 ml/kg/min(app收到手表发送的该数据之后,仅起保存作用) |
| recover_time | int | 恢复时长 单位小时(app收到该数据之后,每过一小时需要自减一) |
| avg_week_activity_time | int | 上个月平均每周的运动时间 单位分钟 (运动总时间 = (手机单独发起的运动 + 手机连接手环发起的运动 + 手环单独发起的运动)/4) |
示例:
{
"day":26,
"hour":10,
"minute":43,
"second":10,
"sport_type":10,
"target_type":1,
"target_value":1,
"force_start":0,
"vo2max":10,
"recover_time":1,
"avg_week_activity_time":1
}
App收到的json字段:
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| ret_code | int | 0:成功 1:设备已经进入运动模式失败 2:设备电量低失败 3:充电中 4:处于alexa不让开始 |
示例:
{
"ret_code":0
}