Skip to content

Commit 0bc9e4a

Browse files
committed
Pass along firmware version to NTRIP caster
As a nicety
1 parent 50e9cca commit 0bc9e4a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ ESP32Time rtc;
104104
//microSD Interface
105105
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
106106
#include <SPI.h>
107-
#include "SdFat.h"
107+
#include "SdFat.h" //Currently uses v2.1.1
108108

109109
SdFat sd;
110110

Firmware/RTK_Surveyor/States.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ void updateSystemState()
298298

299299
Serial.printf("Connected to %s:%d\n\r", settings.casterHost, settings.casterPort);
300300

301-
const int SERVER_BUFFER_SIZE = 512;
301+
const int SERVER_BUFFER_SIZE = 512;
302302
char serverBuffer[SERVER_BUFFER_SIZE];
303303

304-
snprintf(serverBuffer, SERVER_BUFFER_SIZE, "SOURCE %s /%s\r\nSource-Agent: NTRIP %s/%s\r\n\r\n",
305-
settings.mountPointPW, settings.mountPoint, ntrip_server_name, "App Version 1.0");
304+
snprintf(serverBuffer, SERVER_BUFFER_SIZE, "SOURCE %s /%s\r\nSource-Agent: NTRIP %s/v%d.%d\r\n\r\n",
305+
settings.mountPointPW, settings.mountPoint, ntrip_server_name, FIRMWARE_VERSION_MAJOR, FIRMWARE_VERSION_MINOR);
306306

307307
//Serial.printf("Sending credentials:\n%s\n\r", serverBuffer);
308308
caster.write(serverBuffer, strlen(serverBuffer));
@@ -475,8 +475,8 @@ void updateSystemState()
475475
const int SERVER_BUFFER_SIZE = 512;
476476
char serverBuffer[SERVER_BUFFER_SIZE];
477477

478-
snprintf(serverBuffer, SERVER_BUFFER_SIZE, "SOURCE %s /%s\r\nSource-Agent: NTRIP %s/%s\r\n\r\n",
479-
settings.mountPointPW, settings.mountPoint, ntrip_server_name, "App Version 1.0");
478+
snprintf(serverBuffer, SERVER_BUFFER_SIZE, "SOURCE %s /%s\r\nSource-Agent: NTRIP %s/v%d.%d\r\n\r\n",
479+
settings.mountPointPW, settings.mountPoint, ntrip_server_name, FIRMWARE_VERSION_MAJOR, FIRMWARE_VERSION_MINOR);
480480

481481
//Serial.printf("Sending credentials:\n%s\n\r", serverBuffer);
482482
caster.write(serverBuffer, strlen(serverBuffer));

0 commit comments

Comments
 (0)