This repository was archived by the owner on Jan 28, 2021. It is now read-only. 
  Added powerSaveMode #53
   Closed  
   Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.    
 
Hi Nathan (@nseidle),
I think this should be my last PR for a while!
I have added powerSaveMode which uses the UBX-CFG-RXM message to put the GNSS into power save mode. You can put the receiver back into continuous mode by calling powerSaveMode(false).
There is, of course, an example too.
I've tested it on the ZOE-M8Q and the current drops from 25-28mA during acquisition to approx. 9mA when low power mode kicks in. (That's with a passive antenna. Using an active antenna will add 10's of mA to the total draw.)
Enjoy!
Merry Christmas,
Paul