CHG: changed the base message class to only use sender uuid as id

This commit is contained in:
Henry Winkel
2023-07-05 17:25:17 +02:00
parent 828d038d5f
commit 3a63dec02f
5 changed files with 266 additions and 63 deletions

View File

@@ -26,6 +26,8 @@ namespace WHISPER {
PING,
/// PONG
PONG,
/// general Sim track
SIM_TRACK,
/// owntrack informaton
OWN_TRACK,
/// raw track message
@@ -92,7 +94,9 @@ namespace WHISPER {
public:
Message()=default;
Message(std::string senderUUID, MsgTopics topic, MsgType Type,SourceType src);
[[deprecated]]
Message(std::uint32_t parentId,std::uint32_t deviceId, MsgTopics topic, MsgType Type,SourceType src);
Message(std::string msg);
@@ -108,6 +112,8 @@ namespace WHISPER {
std::uint32_t msgType_;
/// WHISPER::SourceType of the sender
std::uint32_t sourceType_;
///sender uuid
std::string senderUUID_;
/// id of the sender
std::uint32_t deviceId_;
/// parent id of the sender 0 if its the manager