client ID
The name a client gives the broker so the broker can tell connections apart and find its saved session.
The client ID identifies a connection to the broker; two clients using the same ID knock each other off, and a persistent session is looked up by it.
Examples
The ESP32 sketch builds its client ID from its MAC address, such as
gh-followed by twelve hex digits, so it is unique.mosquitto_submakes up a random client ID unless you give one with-i.
See also