I flash this code (https://os.mbed.com/teams/myDevicesIoT/code/Cayenne-ESP8266Interface/) 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:
Connecting to 220.127.116.11:1883
MQTT connect failed, error: -1
Connection failed, exiting
What is wrong?
Thank you in advance.