Unfortunately, I did not understand anything from this either.
All I found was this line client = mqtt.connect ('mqtt: // server ....', [{port:, username: '****', password: '****'}] ); But unfortunately it does not work and it is not clear where to enter Clienid :(
Please help who is familiar with this, it is very necessary.
client = mqtt.connect ('mqtt: // server ....', [{port:, clientid: '****', username: '****', password: '****'} ]); - does not work.
client = mqtt.connect ('mqtt: // server ....', [{port:, id: '****', username: '****', password: '****'} ]); - does not work.
client = mqtt.connect ('mqtt: // server ....', [{port:, idclient: '****', username: '****', password: '****'} ]); - does not work.