I want to connect my esp8266 to Amazon IoT.
I compiled the firmware (master@0873fe75), used the example c_mqtt code and followed the steps at https://github.com/cesanta/mongoose-iot/tree/master/fw/examples/c_mqtt but can't get a connection to the MQTT broker at AWS IoT.
However, I can connect to my AWS "thing" via mosquitto_sub/pub so the AWS setup seems to work.
I set the log level to DEBUG and here is what I get:
mqtt_global_connect MQTT connecting to xxxx.iot.eu-central-1.amazonaws.com:8883 set_errno spiffs error: -10002 set_errno spiffs error: -10003 set_errno spiffs error: -10003 set_errno spiffs error: -10003 set_errno spiffs error: -10003 set_errno spiffs error: -10003
No "CONNECT" message, no error message.
Publishing to /device-id/gpio will be received by mosquitto_sub but not by the esp8266.
Pressing the flash button does not trigger a published message. Instead I get
I don't know if the spiffs errors have anything to do with my problem.
Using the new miot aws-iot-setup command did not work as well:
Has anybody been able to connect to AWS IoT lately?