mqttclpro icon indicating copy to clipboard operation
mqttclpro copied to clipboard

Functionality doesn't restored after transfer tasker project to another device

Open pkjq opened this issue 6 years ago • 7 comments

When i export project from tasker and then import it at another device.

  • In MqttClient i already have subscription to required topic, but subscribscription from tasker doesn't work. It's start to work if open (don't change anything) configuration of profile.

  • Publishing doen't work too. And starting to work after open task configuration, wich try to send mqtt message. In this case 'MQTT Publisher Plugin' works correctly.

And if i create App by tasker factory it's doesn't work in another device with symptoms is described above.

pkjq avatar Aug 19 '18 15:08 pkjq

Hey

Tasker uses the broker id generated in the app to save tasks/events.

This id might vary from one device to other which might be the reason behind the project not working out of the box.

deepessh avatar Aug 19 '18 17:08 deepessh

Can you fix this? 'MQTT Publisher Plugin' works fine. May be ID must be dynamically generated? Because it's not portable solution :-|.

pkjq avatar Aug 19 '18 17:08 pkjq

Let me take a look.

As a workaround, you may edit the xml file exported from tasker and change the broker ID to the correct value.

Cheers!

deepessh avatar Aug 19 '18 17:08 deepessh

Yes! Thanks. Workaround is working fine! And i realized what ID you meant. May be use link with name of connection, not a ID?

pkjq avatar Aug 19 '18 18:08 pkjq

Hey, the idea is that you could have multiple connections with the same name, that's why using id is better.

deepessh avatar Sep 23 '18 06:09 deepessh

What is it for? We can't control ID, because It's hidden part of implementation details. And as a consequence it's not portable solution without modification of tasker configuration.

If many connections have the same name, may be user wants to connect with backup servers(reserved)?

pkjq avatar Sep 23 '18 07:09 pkjq

Hey, there could be multiple use cases when the user wants to have the same name for different connections. The idea was to not restrict the user in any way.

That is how it is by design. Let me think if it could be made portable with minimal changes in the current design.

The id is not hidden per se. It is visible in the brokers list. But I agree, it is not a portable solution.

I would love to hear any suggestions you may have.

Cheers! Deepesh

deepessh avatar Oct 05 '18 01:10 deepessh