You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 rivejä
497 B

  1. #include "Gps.h"
  2. #include "Debug.h"
  3. #define LOGGER_NAME "Gps"
  4. namespace gps {
  5. char lastPosition[GPS_POSITION_SIZE];
  6. SIM808_GPS_STATUS lastStatus;
  7. void powerOn() {
  8. }
  9. void powerOff() {
  10. }
  11. SIM808_GPS_STATUS acquireCurrentPosition() {
  12. SIM808_GPS_STATUS currentStatus = SIM808_GPS_STATUS::OFF;
  13. //TODO : do while (!timeout && < accurate_fix)
  14. if (currentStatus > SIM808_GPS_STATUS::NO_FIX) {
  15. lastStatus = currentStatus;
  16. }
  17. return currentStatus;
  18. }
  19. time_t getTime() {
  20. }
  21. }