Chat freely about anything...

User avatar
By xtal
#48054 You might try disabling the 1-wire code , and just simulate the 1-wire value , to see if that clears
the issue. Onewire can be very frustrating .....
I'm using LINKUSB Onewire adapters and have discovered that the reset pulse is sometimes
less than the 480us , It appears to do this whenever it feels like it, or may be some other slave causing the issue, I haven't pursued this yet, I just compensated my DIY DS2450 Slave to accept it...
Ascii Letters/CMDS are sent to LINKUSB . The reset is usually 488us but sometimes is 360us..
Any way try without 1-wire to see if that is the issue...
User avatar
By mixxx2005
#48067 thanks guys, I removed part from code , where ESP is waiting for response from server and everything seems to work for about 1 hour.

part what seems to cause troubles :
Code: Select all  int timeout = millis() + 1000;
  while (client.available() == 0) {
    if (timeout - millis() < 0) {
           client.stop();
      return;
    }
  }
 
  // Read all the lines of the reply from server and print them to Serial
  while(client.available()){
    String line = client.readStringUntil('\r');
  } - See more at: http://www.esp8266.com/posting.php?mode=reply&f=6&t=10127&sid=cf849056a6b493125a69f941db3419e8#sthash.Euh1Icki.dpuf