try to work ntrip client
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include <iostream>
|
||||
#include <SparkFun_u-blox_GNSS_Arduino_Library.h>
|
||||
|
||||
#include "debugTimes.h"
|
||||
|
||||
enum NTRIPClientStates {
|
||||
openConnection,
|
||||
pushData,
|
||||
@@ -38,7 +40,7 @@ class NTRIPClient {
|
||||
|
||||
SFE_UBLOX_GNSS* gps;
|
||||
WiFiClient* ntripClient;
|
||||
NTRIPClientStates state;
|
||||
NTRIPClientStates state = NTRIPClientStates::closeConnection;
|
||||
|
||||
bool transmitLocation = true;
|
||||
bool activated = true;
|
||||
@@ -49,10 +51,10 @@ class NTRIPClient {
|
||||
uint32_t lastGPGGAPushTime = 0;
|
||||
uint32_t lastLoopTime = 0;
|
||||
|
||||
const char* host;
|
||||
const char* mountPoint;
|
||||
const char* user;
|
||||
const char* password;
|
||||
char host[128];
|
||||
char mountPoint[128];
|
||||
char user[128];
|
||||
char password[128];
|
||||
const uint8_t delayTime = 20;
|
||||
const uint16_t timeOut = 5000;
|
||||
const uint16_t tryReconnectTime = 5000;
|
||||
|
||||
Reference in New Issue
Block a user