MQTT - List modules?

3 years 1 month ago #3988 by Tsaukpaetra
I've seen in most of the arduino sketches, that it is expected to simply call a subscribe to /NewModule and receive a new ID (if available). This is fine if you're absolutely sure you have a new module, but I'd like to be able to do a little intelligence scanning and retrieve the module ID dynamically (Essentially, check if the device already has a module ID based on the name, use that, and if it can't find it, then call /NewModule).

I'd also like to retrieve a parameter's data (such as Measurement Unit) once I've made a connection.

According to the documentation, if I attempt to create a parameter that already exists (or conversely, try to subscribe a topic that doesn't exist) I'll get immediately booted. Is this the case?

All of this seems rather complicated...

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds