ntrip client safe without wlan

This commit is contained in:
2022-12-14 08:45:46 +01:00
parent 1f80548797
commit d431fa72bb
5 changed files with 46 additions and 18 deletions
+6 -4
View File
@@ -13,19 +13,21 @@ enum NTRIPClientStates {
openConnection,
pushData,
closeConnection,
wait
wait,
notAvailable
};
class NTRIPClient {
public:
NTRIPClient(SFE_UBLOX_GNSS* gps, const char* host, uint16_t port, const char* mountPoint, const char* user, const char* password);
NTRIPClient();
~NTRIPClient();
void init(SFE_UBLOX_GNSS* gps, const char* host, uint16_t port, const char* mountPoint, const char* user, const char* password);
void loop();
void gpsConfiguration();
void setTransmitLocation(bool b) { this->transmitLocation = b; }
void setActivated(bool b) { this->activated = b; }
bool setActivated(bool b);
bool isConnected();
NTRIPClientStates getClientState() { return this->state; }
@@ -40,7 +42,7 @@ class NTRIPClient {
SFE_UBLOX_GNSS* gps;
WiFiClient* ntripClient;
NTRIPClientStates state = NTRIPClientStates::closeConnection;
NTRIPClientStates state = NTRIPClientStates::notAvailable;
bool transmitLocation = true;
bool activated = true;