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
+3 -1
View File
@@ -52,6 +52,8 @@ void Navigation::init(Route* route) {
this->route = route;
else
this->route = new Route();
this->ntripClient = new NTRIPClient();
}
Navigation::~Navigation() {
@@ -65,7 +67,7 @@ Navigation::~Navigation() {
}
void Navigation::initNtrip(String host, uint16_t port, String mountPoint, String user, String password) {
this->ntripClient = new NTRIPClient(this->gps, host.c_str(), port, mountPoint.c_str(), user.c_str(), password.c_str());
this->ntripClient->init(this->gps, host.c_str(), port, mountPoint.c_str(), user.c_str(), password.c_str());
this->ntripClient->gpsConfiguration();
this->ntripClient->loop();
this->ntripClient->setActivated(false);