Get GPS Status

Function table

__IDO_FUNCTABLE__.funcTable19Model.gps

GPS Status model Description

  • IDOGetGpsStatusBluetoothModel
Parameter Description Notes
gpsRunStatus GPS run status 0: Not running, 1: Searching for stars, 2: Tracking
isAgpsVaild is AGPS vaild The remaining hours of the validity period, non-0 is valid

Command Code

Objc:

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

Swift:

IDOFoundationCommand.getGpsStatusCommand { (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 ""