Mqtt extension with HiveMQ

Hello, im trying to make a basic Sketch that allow me to connect my a free Mqtt broker,im looking trough the posts in the forum and I saw that a user named praeus solved the conection issue but he didnt post anywhere the code that he used and i cannot PM him. could someone that had archived to do so help me out please?

this is the code im using.

the idea is simple click ‘A’ to connect if connected put an object if press “s” send a publication to a topic named “prueba”.

Thank you so much for your help.