Example of communication mqtt?

Can someone give me an example that works rightly of mqtt communication between a mango and a PC server? I’m trying to build also mangOH git Hub project that the example based on paho, but I always see connection errors