-->
Page 1 of 1

SSL connection to Firebase via ESP8266(ESP-01) stop working

PostPosted: Tue Jul 20, 2021 6:56 am
by Nemo Resh
For the last 5 months, we have successfully managed to create an SSL connection to Firebase via ESP8266 (ESP-01).
Two weeks ago the connection stopped working aside for a few individual times, a day after we couldn't connect at all.
-> AT+CIPSTART responded ever since with ERROR CLOSED.

We tried switching between different WiFi networks and got the same results.

Details:
1. We are managing to create TCP connections with HTTP websites.
2. The WiFi module is connected to an STM32, the communication is established using AT commands via UART (baud rate 15200).
3. We tried issuing AT commands using a direct UART connection between the STM32 and the PC (independent of our code). The commands were given through a Terminal window in our PC - AT+CIPSTART still failed (same error).
4. We have 4 different WiFi modules - ESP8266 (ESP-01). They all reacted the same.
5. In the past we had a similar issue, back then we set the SSL size to 4096 (the maximum size and it helped).
6. We managed to connect to other HTTPS websites using an SSL connection
-> when connecting to these sites via AT+CIPSTART we got a few times the response CONNECTED OK, for the rest we got CLOSED OK.

AT commands details
AT+RST (reset the module)
AT+CWMODE=1 (set the Wi-Fi mode to station mode)
AT+CWJAP="SSID","PWD" (connect to a Wi-Fi network)
AT+CIFSR (get the Wi-Fi module IP)
AT+CIPSSLSIZE=4096 (change the SSL buffer size)
AT+CIPSTART="SSL","project-name-rtdb.firebaseio.com",443 (establish a SSL connection)
AT+CIPSEND=300 (send data)

Devices
Wi-Fi module: https://www.makerfocus.com/products/4pcs-esp8266-esp-01-serial-wireless-wifi-transceiver-module-compatible-with-arduino
STM32 microcontroller: https://www.st.com/en/evaluation-tools/nucleo-f103rb.html

Reference
https://github.com/espressif/esp-at/blob/v2.0.0.0_esp8266/docs/ESP_AT_Commands_Set.md
https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf

If anyone can help, we would appreciate it very much.

Thank you in advance!

Re: SSL connection to Firebase via ESP8266(ESP-01) stop work

PostPosted: Wed Jul 21, 2021 12:28 am
by JurajA
Firebase switched to TLS 1.2 and AT firmware doesn't support it

Re: SSL connection to Firebase via ESP8266(ESP-01) stop work

PostPosted: Mon Jul 26, 2021 10:56 am
by Nemo Resh
JurajA wrote:Firebase switched to TLS 1.2 and AT firmware doesn't support it

Thank you so much for your answer!!!
Can you please send us a link that verifies this?
We tried to find on the internet, but we couldn't find one.
(We also sent an email to Firebase, but they still didn't answer us).