Issue Sending HTTP Requests to Blynk Cloud with ESP8266 AT Commands

Hai Everyone
I’m currently working on a project involving the ESP8266 module and Blynk, and I’m encountering some issues with sending HTTP requests to the Blynk cloud server using AT commands.
Setup

ESP Module: ESP8266(ESP-01S)
Firmware: AT version:1.7.6.0(Jan 24 2022 08:56:02)
SDK version:3.0.6-dev(072755c)
compile time:Jun 17 2024 07:37:49
Bin version(Wroom 02):1.7.6
Blynk Token: Ir5N8cHBrjFtzK281pGwRXmgcfp8swfa

AT+CIPSTART="TCP","blr1.blynk.cloud",80
CONNECT

OK
AT+CIPSEND=70

OK
> ET /external/api/get?token=Ir5N8cHBrjFtzK281pGwRXmgcfp8swfa&pin=d2

busy s...
Recv 70 bytes

SEND OK

+IPD,152:HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://blr1.blynk.cloud/bad-request
access-control-allow-origin: *
connection: close

CLOSED

I’d have expected you to be getting a virtual datastream value rather than a digital datastream value.
Have you tried it with a virtual datastream?

Pete.

just use my WiFiEspAT library. it has an example with Blynk

EDIT: assuming that you use Arduino

dues the http API support insecure connection (http)?

Yes, I tried with virutal datastream

AT+CIPSTART="TCP","blr1.blynk.cloud",80
CONNECT

OK
AT+CIPSEND=88

OK
> pi/get?token=IO-ZAz7PAGlfGHvofvldEFgTGxaGtDCV&pin=V0

busy s...

Recv 88 bytes

SEND OK

+IPD,152:HTTP/1.1 301 Moved Permanently
content-length: 0
location: https://blr1.blynk.cloud/bad-request
access-control-allow-origin: *
connection: close

CLOSED

Hai jurai,
Thanks for reply…!
Iam new to blynk.
I tried to Interface ESP-01S with LPC2129 ARM-7 and also ESP connect with Blynk Cloud and control from it. ESP-01 connect to LPC2129 via UART.So, I Send the AT Command to ESP from LPC2129 i have issue send and receive data using HTTP request…

So have you actually created a V1 datastream before trying this request?

Pete.

AT+CIPSTART="SSL","blr1.blynk.cloud",80

Hai Juraj

AT+CIPSTART="SSL","blr1.blynk.cloud",80

CLOSED

OK

unable to connect!

sorry. port should be 443

Hai,
Yes, First I try with Digital pin. after, you suggest to change virtual pin and i also with with it not getting update using AT command

Hai Juraj
Nothing happen to change Port

AT+CIPSTART="SSL","blr1.blynk.cloud",443

CLOSED

OK

You haven’t answered my question.

Pete.

the site uses TLS 1.3. the AT 1.7 only support TLS 1.1