使用 Arduino UNO 将 ESP8266 连接到子域网站?
Connect ESP8266 to subdomain website using Arduino UNO?
如何使用AT命令将Arduino UNO、ESP8266连接到子域网站?
正在与
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
现在,我需要使用 ESP8266、Arduino UNO post 将字符串数据发送到子域网站
示例:
https://subdomain.pythonanywhere.com
http://3dgiftz.epizy.com
提前致谢
如何通过 3 步将 ESP8266 内容上传到 subdomain.pythonanywhere.com
关注
第一步:-
ThingHTTP APP for subdomain.pythonanywhere.com
第二步:-
change settings.py in pythonanywhere.com to avoid {%csrf_token%} error because ThingHTTP is using POST method
第三步:-
AT指令
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
参考:
thinghttp-app.html documentation(第 1 步)
https://exceptionshub.com/how-to-disable-djangos-csrf-validation(第 2 步)
ESP8266 连接到 Arduino UNO(第 3 步)
Arduino --------------------------------------- ESP8266
Pin 0 (RX) -----------------------------------> RXD
Pin 1 (TX) -----------------------------------> TXD
GND ------------------------------------------> GND
3.3 V ----------------------------------------> VCC
3.3 V ----------------------------------------> CH_PD
上传简单的 Arduino 代码
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
如何使用AT命令将Arduino UNO、ESP8266连接到子域网站?
正在与 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
现在,我需要使用 ESP8266、Arduino UNO post 将字符串数据发送到子域网站
示例:
https://subdomain.pythonanywhere.com
http://3dgiftz.epizy.com
提前致谢
如何通过 3 步将 ESP8266 内容上传到 subdomain.pythonanywhere.com
关注
第一步:- ThingHTTP APP for subdomain.pythonanywhere.com
第二步:- change settings.py in pythonanywhere.com to avoid {%csrf_token%} error because ThingHTTP is using POST method
第三步:- AT指令
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
参考:
thinghttp-app.html documentation(第 1 步)
https://exceptionshub.com/how-to-disable-djangos-csrf-validation(第 2 步)
ESP8266 连接到 Arduino UNO(第 3 步)
Arduino --------------------------------------- ESP8266
Pin 0 (RX) -----------------------------------> RXD
Pin 1 (TX) -----------------------------------> TXD
GND ------------------------------------------> GND
3.3 V ----------------------------------------> VCC
3.3 V ----------------------------------------> CH_PD
上传简单的 Arduino 代码
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}