mirror of https://github.com/meshcore-dev/MeshCore
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.
24 lines
614 B
24 lines
614 B
#pragma once
|
|
|
|
#include "Mesh.h"
|
|
|
|
|
|
class LocationProvider {
|
|
protected:
|
|
bool _time_sync_needed = true;
|
|
|
|
public:
|
|
virtual void syncTime() { _time_sync_needed = true; }
|
|
virtual bool waitingTimeSync() { return _time_sync_needed; }
|
|
virtual long getLatitude() = 0;
|
|
virtual long getLongitude() = 0;
|
|
virtual long getAltitude() = 0;
|
|
virtual long satellitesCount() = 0;
|
|
virtual bool isValid() = 0;
|
|
virtual long getTimestamp() = 0;
|
|
virtual void sendSentence(const char * sentence);
|
|
virtual void reset();
|
|
virtual void begin();
|
|
virtual void stop();
|
|
virtual void loop();
|
|
};
|
|
|