How to allow random ClientID


#1

Greetings from Japan!
We use MQTT printers with our own mosquitto server but we would like to migrate to myqtthub.
In our current mosquitto server, we just use Username and Password login credetials, and all the MQTT printers are using a randomized unique ClientID.
How can we connect to myqtthub with just using Username and Password without specifying a ClientID?


#2

Hi from Spain! Good morning,

This case is just solved with the bootstrap Auth.

Next you will find full details on how to use this auth method for random clientIds. Pay close atention to register device option (depending on your context, it might be useful or just the oposite):

Best regards.