简体   繁体   中英

Connect ESP8266 to subdomain website using Arduino UNO?

How to connect Arduino UNO, ESP8266 to a Subdomain website using AT commands?

Its working with ThingSpeak ,

AT+CIPMUX=1
AT+CIPSTART=1,"TCP","api.thingspeak.com",80
AT+CIPSEND=1,62
GET /update?api_key=myapikey&field1=123&field2=456
AT+CIPCLOSE=1

Now, I need to post a String data to a subdomain website using ESP8266, Arduino UNO Example:
https://subdomain.pythonanywhere.com
http://3dgiftz.epizy.com

Thanks in advance

How to upload ESP8266 content to subdomain.pythonanywhere.com in 3 Steps

FOLLOW CAREFULLY

Step1:- ThingHTTP APP for subdomain.pythonanywhere.com

Step2:- change settings.py in pythonanywhere.com to avoid {%csrf_token%} error because ThingHTTP is using POST method

Step3:- AT commands

AT+CIPMUX=1
AT+CIPSTART=1,"TCP","api.thingspeak.com",80
AT+CIPSEND=1,76
GET /apps/thinghttp/send_request?api_key=YOUR_API_KEY&busid=ABC123&nfc=ABDE3456
AT+CIPCLOSE=1

Reference:
thinghttp-app.html documentation (step-1)
https://exceptionshub.com/how-to-disable-djangos-csrf-validation (step-2)

ESP8266 Connection to Arduino UNO (step-3)

Arduino --------------------------------------- ESP8266  
Pin 0 (RX) -----------------------------------> RXD  
Pin 1 (TX) -----------------------------------> TXD  
GND ------------------------------------------> GND  
3.3 V ----------------------------------------> VCC  
3.3 V ----------------------------------------> CH_PD  

Upload Simple Arduino Code

void setup() {  
// put your setup code here, to run once:    

}

void loop() {
// put your main code here, to run repeatedly:

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM