-->
Page 1 of 2

Access to web page using SDK and C

PostPosted: Sat Jun 06, 2015 5:34 am
by walt22
Hi,

I want to develop for an ESP8266 in standalone mode an access to a web page in Internet.
As one can do it with AT+CIPSTART and AT+CIPSEND... But not with AT commands, but with C code
using the SDK.
In order to ease my life, I am looking for examples and hints.
Many thanks and best regards
Walter

Re: Access to web page using SDK and C

PostPosted: Sat Jun 06, 2015 10:13 am
by anakod
It's very simple if you will use framework (not only low-level SDK functions):
https://github.com/anakod/Sming/blob/ma ... on.cpp#L39

Re: Access to web page using SDK and C

PostPosted: Sat Jun 06, 2015 12:43 pm
by cal
Moin,

nodemcu (lua) may be an alternative to get started.

Cal

Re: Access to web page using SDK and C

PostPosted: Sun Jun 07, 2015 4:38 am
by walt22
Hello,
Many thanks for your helpful replies.
I am working with the excellent toolchain of Cherts and have realized several projects with it.
@anakod
Your example looks indeed very simple. But where the structure HttpClient is located? Is it in your SmingCore?
I did not find it yet. Even in the most recent SDK 1.1.1 documentation it is not mentioned.
Right now I will do some tests with espconn_gethostbyname, in order to receive the IP of the web site, and then
start with a conversation between ESP station and Internet.
It is an interesting topic, I like it.
Best regards
Walter