0

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

4
  • That would depend on what you are running there. Commented Jan 12, 2022 at 19:55
  • mysubdomain.pythonanywhere.com/page13?hello=10. I need my ESP8266 to call this Commented Jan 13, 2022 at 5:39
  • Have you tried modifying the code you posted to do that? Commented Jan 13, 2022 at 6:25
  • Yes tried modifying AT commands but didnt work. Or anyidea on how to connect esp8266 to a subdomain website hosted by infinityfree.net. Here is the subdomain php website.(3dgiftz.epizy.com) Commented Jan 13, 2022 at 9:21

1 Answer 1

1

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:

}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.