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
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Dynamically set MQTT client ID | 8 | 292 | 14 June 2023 | |
| Other dynamic parameters in MQTT in | 4 | 430 | 4 September 2022 | |
| Insufficient dynamic mqtt documentation? | 12 | 109 | 17 October 2024 | |
| Dynamically set MQTT broker configurations | 3 | 281 | 29 September 2024 | |
| Dynamically set clientID for MQTT output | 15 | 1560 | 29 October 2021 |