-->
Page 6 of 7

Re: HelloServer causes Exception

PostPosted: Mon Jan 23, 2017 1:27 pm
by Henning
1.) global WiFiClient client --> no difference

2.) .abort() --> class WiFiClient has no member named 'abort'

I can`t believe that the tcp/ip stuff is 'eating' memory ... but the memory never "returns". The following loop ends with 5032 bytes heap and client.connect is never called again ...

Code: Select allvoid loop()
{
  WiFiClient client;
  int heap = ESP.getFreeHeap();

  if( heap > 5000 )
  {
    client.connect(host, 80);
    client.stop();
    Serial.printf( "\n%d", heap );
  }
}

Re: HelloServer causes Exception

PostPosted: Wed Jan 25, 2017 4:59 am
by alemlishar
Hello Henning,

can we consider the issue as a bug? i still can't find any solution to it, do you have any alternate idea to overcome the issue even to use different mechanism to connect to the tcp server?

regards

Re: HelloServer causes Exception

PostPosted: Wed Jan 25, 2017 1:09 pm
by Henning
Hmmm ... if nobody points to an error in our code I would suggest a bug. But I`m careful with such a statement, can somebody from the specialists give us a hint, please ?

Re: HelloServer causes Exception

PostPosted: Thu Jan 26, 2017 2:51 pm
by Henning
Hello alemlishar,
it seems we are alone here. Possibly we have to open a new thread ...