New answers tagged

0

You shouldn't use the same client id for both mosquitto apps. Client id's need to be unique, so you'll have to add a new one to the policy.


1

First, it's bad practice to start topics with a leading / (while allowed in the spec it ends up causing problems later when you starting using things like shared subscriptions). As John S hinted in his answer, this is not something you really want the broker to be doing, you should be doing this yourself with a separate client. Assuming you are running the ...


1

You might be overthinking it. You can just create an MQTT client service that runs on the RasPi separate from the mosquitto server that subscribes to the topic that you want to transform, then publishes to the new topic upon receiving the original one. It's perfectly fine to have an MQTT client running on the same machine as the MQTT server. So the MQTT ...


Top 50 recent answers are included