esp8266

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

Moderator: Benj

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

esp8266

Post 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

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

Re: esp8266

Post by Benj »

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

Post 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.

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

Re: esp8266

Post 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"

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

Re: esp8266

Post 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.

Post Reply