Reference   Language | Libraries | Comparison | Changes

Arduino_MKRGPS : GPS class

wakeup()

Description

Wake up the GPS from standby mode.

Syntax

GPS.wakeup()

Parameters

None

Returns

Nothing

Example


/ put the GPS in standby mode
  Serial.println("standby");
  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("wait location ... ");
  while (!GPS.available());

 // ...

See Also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.