Arduino_MKRGPS - wakeup()

Wake up the GPS from standby mode.

Syntax

GPS.wakeup()

Parameters

None.

Returns

None.

Example

// Put the GPS in standby mode
Serial.println("Standby mode");
GPS.standby();

// Wait for 10 seconds
delay(10000);

// Wake up the GPS
Serial.println("Wakeup");
GPS.wakeup();

// Wait for new GPS data to become available
Serial.print("Waiting new location data... ");
while (!GPS.available());

// ...

See also