# Can the MQTT ClientID be set dynamically?

**URL:** <https://discourse.nodered.org/t/can-the-mqtt-clientid-be-set-dynamically/92312>\
**Category:** General\
**Tags:** mqtt\
**Created:** [11 October 2024 06:49 UTC](https://discourse.nodered.org/t/can-the-mqtt-clientid-be-set-dynamically/92312 "2024-10-11T06:49:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NNNN](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@NNNN](https://discourse.nodered.org/u/NNNN)\
**Post date:** [11 October 2024 06:49 UTC](https://discourse.nodered.org/t/can-the-mqtt-clientid-be-set-dynamically/92312/1 "2024-10-11T06:49:19Z")

</div>

I've seen an example of a dynamic configuration [here](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902) 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?

---

_[View the full topic](https://discourse.nodered.org/t/can-the-mqtt-clientid-be-set-dynamically/92312)._
