Skip to content

Commit 69ef1e7

Browse files
committed
mqtt: Don't default to start topics with /
Not conventional on MQTT, nor with Msgflo
1 parent 192558d commit 69ef1e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/msgflo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class MosquittoEngine final : public Engine, protected mqtt_event_listener, prot
294294

295295
protected:
296296
string generateQueueName(const Definition &d, const Definition::Port &port) override {
297-
return "/" + d.role + "." + string_to_upper_copy(port.id);
297+
return d.role + "." + string_to_upper_copy(port.id);
298298
}
299299

300300
virtual void on_msg(const string &msg) override {

0 commit comments

Comments
 (0)