Changing GPS Baud Rate with minimal NMEAGPS and GPSPort

J-M-L:
just as it is, get rid of the commented lines as they are useless and confusing


EDIT - misread what you said.

you basically need to open up a Serial port set up at 9600 bauds, send the $PMTK251,57600*2C command to your device, then terminate the connexion and reopen at 57600

I've tried this;

#include <NMEAGPS.h>
#include <GPSPort.h>

NMEAGPS gps;

void setup()
{
  gpsPort.begin(9600);

  gps.send_P( &gpsPort, F("$PMTK251,57600*2C") );

  delay(200);
  
  gpsPort.begin(57600);

}

void loop()
{
  
}

but it still stays at 9600...

Have I made any obvious mistakes? Thanks.