ESP8266-Nucleo connection problem - mbed

Hello,

I flash this code (Cayenne-ESP8266Interface - Example for connecting to Cayenne using the ESP82… | Mbed) on my Nucleo STM32F401RE which is connected with a ESP8266 wifi module. I have followed the tutorial about how to connect device on Cayenne platform and after compiling i get this error:
Initialiizing interface
Connecting to 34.206.242.200:1883
MQTT connect failed, error: -1
Connection failed, exiting

What is wrong?

Thank you in advance.

have you set the correct IP address??

// Use Cayenne IP instead of "mqtt.mydevices.com" since the ESP8266Interface doesn't support looking up the domain name.
#define CAYENNE_IP ""

I have already tried these IPs: ( 57.7.250.10 ), ( 52.5.94.29 ).

you can get the IP with host mqtt.mydevices.com

Thank you very much!! It works!!