Skip to content

Commit

Permalink
uuid print
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper committed Nov 26, 2023
1 parent 89679ca commit f98307d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DSP/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,6 @@ namespace AIS {
}

std::string ModelNMEA::Get() {
return "nmea_refresh " + Util::Convert::toString(nmea.getRegenerate()) + " crc_check " + Util::Convert::toString(nmea.getCRCcheck()) + " VDO " + Util::Convert::toString(nmea.getVDO()) + Model::Get();
return "nmea_refresh " + Util::Convert::toString(nmea.getRegenerate()) + " uuid " + nmea.getUUID() + " crc_check " + Util::Convert::toString(nmea.getCRCcheck()) + " VDO " + Util::Convert::toString(nmea.getVDO()) + Model::Get();
}
}
2 changes: 2 additions & 0 deletions IO/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ namespace IO {
std::cerr << ", JSON: " << Util::Convert::toString(JSON);
if (broadcast) std::cerr << ", broadcast: true";
if (reset > 0) std::cerr << ", reset: " << reset;
if (!uuid.empty()) std::cerr << ", uuid: " << uuid;

std::cerr << std::endl;

if (sock != -1) {
Expand Down
1 change: 1 addition & 0 deletions Library/NMEA.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ namespace AIS {
void setVDO(bool b) { VDO = b; }
bool getVDO() { return VDO; }
void setUUID(const std::string &u) { uuid = u; }
std::string getUUID() { return uuid; }

void setStation(int s) { station = s; }

Expand Down

0 comments on commit f98307d

Please sign in to comment.