eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.1k stars 2.4k forks source link

Appending topics to bridge by including .conf-files #1678

Open Frogtime opened 4 years ago

Frogtime commented 4 years ago

I am wondering if it is possible to append topicconfigurations to an existing bridge by including other configuration files (include_dir /etc/mosquitto/conf.d) which contain further topicstatements.

When I add the include_dir /etc/mosquitto/conf.d statement at the end of the mosquitto.conf file which contains the bridge configuration and put a .conf-file in the /etc/mosquitto/conf.d directory with only this line topic localgateway_to_awsiot out 1, mosquitto is terminated with an invalid config error.

ralight commented 4 years ago

It's not possible at the moment, the information on the current bridge/current listener isn't passed on to files in include_dir. I'm thinking about whether that is a bug or a feature...

Frogtime commented 4 years ago

Thanks for the quick reply. Then I have to have rethink my approach on how to include various local clients and their needed subscriptions although I think this feature would come in handy.