This method sets GPS controller power saving mode. It is equivalent to the AT$GPSPS command.
The first input parameter mode is a Python integer and can have the following values:
0 - Power Saving disabled – Continuous Power (default);
1 - Trickle Power activated;
2 - Push To Fix Mode enabled.
The second input parameter pushToFixPeriod is a Python integer which is the value of push to fix period in seconds used when mode=2. If mode= 0 or mode= 1 this parameter has no meaning and can be set to any value.
The return value is a Python integer which is -1 if an error occurred otherwise is 1.
TeseoII-based GNSS receiver currently does not support power saving.
This method is available only for product versions from 12.00.xx6 and from 13.00.xx7.
Example:
res = GPS.powerSavingMode(2, 15)
sets GPS controller in power saving mode 2 with push to fix period of 15 seconds, assigning the return value to res.