Skip to content

Commit bf975e4

Browse files
committed
retained topic for signal list
1 parent d9faef7 commit bf975e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mqtt_streaming_server_module/src/mqtt_streaming_server_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void MqttStreamingServerImpl::sendTopicList()
249249
std::string topic = buildSignalsTopic();
250250
auto topicsMessage = prepareJsonTopics();
251251
if (publisher.isConnected() == mqtt::MqttConnectionStatus::connected) {
252-
bool status = publisher.publish(topic, (void*) topicsMessage.c_str(), topicsMessage.length());
252+
bool status = publisher.publish(topic, (void*) topicsMessage.c_str(), topicsMessage.length(), nullptr, 1, nullptr, true);
253253
if (!status) {
254254
LOG_W("Failed to publish topics list to {}", topic);
255255
} else {

0 commit comments

Comments
 (0)