0

Connection issue on io.adafruit with MQTT and SSL
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Connection issue on io.adafruit with MQTT and SSL

by pandiculation on Sun Sep 29, 2019 4:06 pm

Hello!

It seems like the MQTT connection with SSL can't be established for the past 3 weeks.

In more details, I'm using the "mqtt_esp8266" example provided in the Arduino software and when I use it as such (and update the wifi and Adafruit.io information) it works like a charm. When I try to use an SSL connection by changing:
Code: Select all | TOGGLE FULL SIZE
#define AIO_SERVERPORT  1883
WiFiClient client;
to
Code: Select all | TOGGLE FULL SIZE
#define AIO_SERVERPORT  8883
WiFiClientSecure client;


The MQTT connection fails to go through whereas it used to work very well. Has any update being performed on the io.adafruit servers?

Please let me know if there is anyhting I can do to help debug the situation.

Thanks!

pandiculation
 
Posts: 11
Joined: Wed Apr 04, 2018 7:20 pm

Re: Connection issue on io.adafruit with MQTT and SSL

by pandiculation on Fri Oct 04, 2019 2:33 pm

Has somebody encountered the same problem?
Is there any other parameter to change?

This situation really puzzles me as my code used to work.

Thank you in advance for any help.

pandiculation
 
Posts: 11
Joined: Wed Apr 04, 2018 7:20 pm

Re: Connection issue on io.adafruit with MQTT and SSL

by brubell on Mon Oct 07, 2019 9:43 am

Hi pandiculation,

Are you using the following configuration with the Arduino IDE?

* ESP8266 Board Support Package 2.5.1
* Adafruit IO Arduino Library v3.2
* Adafruit MQTT Library v1.0 (or above)

brubell
 
Posts: 528
Joined: Fri Jul 17, 2015 10:33 pm

Re: Connection issue on io.adafruit with MQTT and SSL

by pandiculation on Mon Oct 07, 2019 4:08 pm

brubell wrote:Hi pandiculation,

Are you using the following configuration with the Arduino IDE?

* ESP8266 Board Support Package 2.5.1
* Adafruit IO Arduino Library v3.2
* Adafruit MQTT Library v1.0 (or above)


Hi brubell,

Thank you for helping.

I use:
Adafruit MQTT Library 1.0.3
Adafruit IO Arduino 3.2.2


Regarding the board, I use:
esp8266 by ESP8266 Community version 2.5.2

so I think I'm aligned with the versions you mentionned.

FYI, I use a Wemos D1 mini Lite board

pandiculation
 
Posts: 11
Joined: Wed Apr 04, 2018 7:20 pm

Please be positive and constructive with your questions and comments.