Skip to content

Commit

Permalink
Client: use INode::buildReportRssiTopic
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidB137 committed Sep 24, 2024
1 parent 16c1ab9 commit fe98f46
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/common/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ namespace kvik
return ErrCode::SUCCESS;
}

std::vector<kvik::PubData> pubs;
std::vector<PubData> pubs;

// Populate publications
for (const auto &gw : gws) {
Expand All @@ -379,11 +379,7 @@ namespace kvik
}

pubs.push_back({
.topic = m_conf.nodeConf.reporting.baseTopic +
m_conf.nodeConf.topicSep.levelSeparator +
m_conf.nodeConf.reporting.rssiSubtopic +
m_conf.nodeConf.topicSep.levelSeparator +
gw.addr.toString(),
.topic = this->buildReportRssiTopic(gw.addr),
.payload = std::to_string(gw.rssi),
});
}
Expand Down

0 comments on commit fe98f46

Please sign in to comment.