ntrip client safe without wlan
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user