I've seen an example of a dynamic configuration here but I wonder if the MQTT Client ID can also be set dynamically.
I want each device to set their ID to the device's serial number, so doing that manually across all devices is not a good solution.
Is that possible?
Yes. See the full demo in the linked post: Dynamic MQTT LWT birth, Close & Will Property - #2 by Steve-Mcl it does that in the "connect with opts" inject
@Steve-Mcl
Great, thanks for the quick help!
One more follow-up question: Can the TLS configuration also be set dynamically?
No. not supported.
You can use ENV VARs in the TLS config (env vars get evaluated at launch of node-red) - perhaps that would help?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.