Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By CHERTS
#12978
ranhaber wrote:I've downloaded the "esp_iot_sdk_v1.0.0_15_03_20" from espressif site.
I compared and saw that all the lib files are different, why?


Sorry, in DevKit v2.0.0 the catalog ESP8266_SDK\lib got from the library SDK v0.9.5, I released an update DevKit v2.0.1

A new version of my build Espressif DevKit for Windows v2.0.1
The list of changes to the first page

Update procedure:
1. Remove the old version.
2. Install the new version DevKit.
ATTENTION!!! When you delete the old version will be removed entire directory C:\Espressif
User avatar
By mariuszb
#13007 CHERTS
now DTH_22 thingspeak example works better.
but ..... if this line is correct in module httpclient.c ?/

char * body = (char *)os_strstr(req->buffer, "\r\n\r\n") + 4;


This below ( from user_main.c ) work ok

if (http_status == 200)
{
//os_printf("strlen(response)=%d\r\n", strlen(response));
//os_printf("strlen(full_response)=%d\r\n", strlen(full_response));
// os_printf("response=%s\r\n", response);
os_printf("full_response=%s\r\n", full_response); //!!!!!!!


end this not always ( wdt resets):

if (http_status == 200)
{
//os_printf("strlen(response)=%d\r\n", strlen(response));
//os_printf("strlen(full_response)=%d\r\n", strlen(full_response));
os_printf("response=%s\r\n", response); //!!!!
// os_printf("full_response=%s\r\n", full_response);


or we still have other memory writing problem.
User avatar
By mariuszb
#13018 hhtpclient.c

I think line :
char * body = (char *)os_strstr(req->buffer, "\r\n\r\n") + 4;

should look like this:
char * body = (char *)os_strstr(req->buffer, "\r\n\r\n");
if (body)
body+=4;

in the event of "\r\n\r\n" is not found,

ps.Strange method of separation body