Set Activity Recognition Switch

Function: setActivitySwitch [v3AutoActivitySwitch (to be provided), auto_activity_switch_add_smart_rope_02_EA_03_49 (C library jsonid SDK to be provided)]

Flutter Example:

/// Activity switch setting event number
setActivitySwitch(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_activity_switch),

/// Set activity switch
libManager.send(evt: CmdEvtType.setActivitySwitch, json: jsonEncode(json));

JSON fields sent by the App:

Field Name Field Type Field Description
auto_identify_sport_walk int Auto identify walking switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_run int Auto identify running switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_bicycle int Auto identify cycling switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_pause_on_off int Auto pause during activity
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_end_remind_on_off_on_off int End reminder
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_elliptical int Auto identify elliptical switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_rowing int Auto identify rowing machine switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_swim int Auto identify swimming switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)
auto_identify_sport_smart_rope int Auto identify smart rope switch
0:Off
1:On
Menu getAutoActivitySetGetUseNewStructExchange after open, by getting recognition switch libManager. Send (evt: CmdEvtType. SetActivitySwitch) judge this switch does not support team (-1 value is not support)

Example:

{
   "auto_identify_sport_walk": 0,
   "auto_identify_sport_run": 0,
   "auto_identify_sport_bicycle": 0,
   "auto_pause_on_off": 0,
   "auto_end_remind_on_off_on_off": 1,
   "auto_identify_sport_elliptical": 0,
   "auto_identify_sport_rowing": 0,
   "auto_identify_sport_swim": 0,
   "auto_identify_sport_smart_rope":0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""