Looking to extract number of Satellites - M9N GPS

Hi - Looking to extract number of satellites being received from M9N GPS (GPS-15712) attached to Arduino Uno.

Can’t seem to get code in Sketch to work. Below are highlights:

#include <Wire.h>

#include “SparkFun_Ublox_Arduino_Library.h”

SFE_UBLOX_GPS myGPS;

long latitude = myGPS.getLatitude();

long speed = myGPS.getGroundSpeed();

Serial.println(latitude); // This works

Serial.println(speed); // This works

Serial.println(myGPS.getYear()); // This works

Serial.println(myGPS.getNumSatellites()); // This does not work

Error > ‘class SFE_UBLOX_GPS’ has no member named ‘getNumSatellites’

Please help ? I’m sure error is on my part. New to GPS use.

Also - Any way to see fields (Members or functions?) available to use after myGPS. xxxxxxxx

Many Thanks !

Try:

myGPS.getSIV();

Example 3 in the library returns satellites in view.

There isn’t a document that lists all the possible data you can query, take a look at the source for the library to find out what’s available.

https://github.com/sparkfun/SparkFun_Ub … master/src

Thanks - Very helpful !