Mosquitto MQTT client arguments

C
client.connect("unique-id", "username", "password");

Source

Also in C: