implemented local client join functionality

This commit is contained in:
Henry Winkel
2022-11-13 15:04:20 +01:00
parent 84305eb7fa
commit cf1800ffba
9 changed files with 231 additions and 40 deletions

View File

@@ -12,6 +12,8 @@ namespace WHISPER {
msg = messages::header::Message();
try {
msg.ParseFromString(stringMessage);
deviceId_ = msg.sourceid();
topic_ = msg.topic();
sourceType_ = msg.sourcetype();
msgType_ = msg.msgtype();
@@ -60,7 +62,6 @@ namespace WHISPER {
std::string Message::serialize(){
std::string serializedMessage;
LOG_S(INFO)<<msg.ByteSizeLong();
if (msg.IsInitialized()) {
serializedMessage = msg.SerializeAsString();
}