Get Health monitoring Switch

Function table

__IDO_FUNCTABLE__.funcTable35Model.getHealthSwitchState

Health Monitoring switch model description

  • IDOGetHealthSwitchStateModel
Parater Description Notes
heartMode Continuous heart rate switch bool
pressureMode Stress automatic detection switch bool
spo2Mode Blood oxygen automatic detection switch bool
scienceMode scientific sleep switch bool
temperatureMode night temperature switch bool
noiseMode noise switch bool
menstrualMode menstrual cycle switch bool
walkMode walk reminder switch bool
handWashingMode Drink water reminder switch bool
heartModeNotifyFlag Heart rate notification status type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification
pressureNotifyFlag Stress Notification Status Type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification
spo2NotifyFlag Blood Oxygen Notification Status Type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification
menstrualNotifyFlag Period Notification Status Type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification
guidanceNotifyFlag Fitness coach notification status type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification
reminderNotifyFlag Reminder notification status type 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification

Command code

Objc:

[IDOFoundationCommand getHealthSwitchStateCommand:^(int errorCode, IDOGetHealthSwitchStateModel * _Nullable data) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

IDOFoundationCommand.getHealthSwitchStateCommand { (errorCode, model) in
    if errorCode == 0 {
        //get success
    }else if errorCode == 6 {
       //device not supported
    }else {
       //get failed.                                                                                                                                                                                                                                        
    }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""