Open agtzdimi opened 5 years ago
Hi there,
I'm glad that you find this project interesting.
Resource configuration is currently possible only using config files. Dynamic configuration of devices has been a long lasting feature request (#34) but hasn't been added yet. We'll prioritize this issue and implement it in the following weeks.
For the time being, you can update the configuration file and restart device-gateway. It restarts very quickly and you won't lose MQTT messages because the QoS is set to 1.
Thank you for your quick reply.
Another thing I would like to ask is about the publish topic. Is it feasible to publish the message to another IP rather than localhost?
Of course I can overcome this one by subscribing to the topic from the remote machine, but just in case I missed it in the config file
Yes of course, this is set in the main configuration file or retrieved from the Service Catalog.
Well, my point is to have for example multiple resources, subscribing to 'localhost' and the first publish to 'IP1', the second one to 'IP2' etc. If I am correct the main config file is referring to one global MQTT broker right?
No, that's currently not possible but I can imagine the usefulness. Could you make a separate issue / feature request for that?
Of course I will do it :)
Thank you
Hello,
Thank you for your work and the projects :) I have a question regarding the device-gateway.
My requirement is to register devices and keep them alive through the device-gateway on the fly. In this way while the service-catalog and device-gateway are running I can create separate MQTT topics to subscribe and publish.
For example: Currently it is possible to configure having an array of resources:
Is it possible to add multiple other resources entries after the start of the device-gateway?