Moderators: adafruit_support_bill, adafruit
// You can adjust which sentences to have the module emit, below
// uncomment this line to turn on RMC (recommended minimum) and GGA (fix data) including altitude
//GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
// uncomment this line to turn on only the "minimum recommended" data for high update rates!
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY);
// uncomment this line to turn on all the available data - for 9600 baud you'll want 1 Hz rate
//GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_ALLDATA);8bar wrote:I think I fixed the problem. I put a 1 sec delay after GPS.begin and after each GPS.sendCommand and now it works.
8bar wrote:Then I took the delay out after the GPS.begin, and I could no longer switch again.
Are you calling GPS.begin(9600)
Are you using hardware or software serial?
driverblock wrote:Hi - We've updated the library to add a delay after GPS.begin. If you get a chance, download it and see if it works for you.
Thanks!
Return to Other Adafruit products
Users browsing this forum: mibignistinly and 6 guests