Page 1 of 1
esp8266
Posted: Thu Jan 24, 2019 3:54 pm
by anugani12
SIr,
i have required web based appliances control flowcode examples.
like street light and home automation can you give any examples
and can you explain below code
"GET /demo/test.txt HTTP/1.1\r\nHost: 46.17.91.231\r\n\r\n"
as a same time "post" examples also required like light condition ON/OFF
Re: esp8266
Posted: Thu Jan 24, 2019 4:20 pm
by Benj
Hello,
Have you looked at the examples available here:
https://www.matrixtsl.com/wikiv7/index. ... 6ada46f7bf
Re: esp8266
Posted: Thu Feb 07, 2019 4:33 pm
by anugani12
Have you looked at the examples available here:
https://www.matrixtsl.com/wikiv7/index. ... 6ada46f7bf
yes i see but there not given any post examples.
and i want to use thingspeek server. please give me some examples for post and as a same time thingspeak server.
Re: esp8266
Posted: Tue Feb 19, 2019 4:29 pm
by anugani12
This is page request code how to convert http1.1 format. please help me
"
https://api.thingspeak.com/update?api_k ... &field2=25"
Re: esp8266
Posted: Tue Feb 19, 2019 11:43 pm
by Benj
Hello,
This site may help.
https://www.w3schools.com/tags/ref_httpmethods.asp
You would connect to the server, open a socket and then send a string like this. Carriage returns are coded as "\r\n"
Assuming thingspeak still allows for http vs https. https would be hard with a micro.
Data should be ON or OFF from the looks of your first post. YOUR_IP should be your ESP IP address.