esp8266

A forum where Flowcode v7 user created components can be shared, discussed and reviewed.

Moderator: Benj

anugani12
Posts: 17
Joined: Wed Apr 26, 2017 8:36 am
Been thanked: 3 times
Contact:

esp8266

Postby anugani12 » Thu Jan 24, 2019 3:54 pm

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

User avatar
Benj
Matrix Staff
Posts: 14467
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4531 times
Been thanked: 4200 times
Contact:

Re: esp8266

Postby Benj » Thu Jan 24, 2019 4:20 pm

Hello,

Have you looked at the examples available here: https://www.matrixtsl.com/wikiv7/index. ... 6ada46f7bf

anugani12
Posts: 17
Joined: Wed Apr 26, 2017 8:36 am
Been thanked: 3 times
Contact:

Re: esp8266

Postby anugani12 » Thu Feb 07, 2019 4:33 pm

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.

anugani12
Posts: 17
Joined: Wed Apr 26, 2017 8:36 am
Been thanked: 3 times
Contact:

Re: esp8266

Postby anugani12 » Tue Feb 19, 2019 4:29 pm

This is page request code how to convert http1.1 format. please help me

"https://api.thingspeak.com/update?api_key=######&field2=25"

User avatar
Benj
Matrix Staff
Posts: 14467
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4531 times
Been thanked: 4200 times
Contact:

Re: esp8266

Postby Benj » Tue Feb 19, 2019 11:43 pm

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"

POST http://api.thingspeak.com/update?api_key=######&field2=25 HTTP/1.1
Host: YOUR_IP

DATA


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.