Updated some settings

This commit is contained in:
anschrammh 2020-12-29 11:11:19 +01:00
parent 2113075d6e
commit 71cc0a6d8a

View File

@ -2,13 +2,15 @@
* This sketch was written in order to stress test the TCPServer and WEBServer classes used in my project and
* hopefully find why the WEBServer class isn't stable ...
* This test is aimed toward spotting possible causes of crash
* /!\ Don't forget to define SSID and PASSWD macros ...
* Created by Anatole SCHRAMM-HENRY the 12/12/2020
*/
#include "StressServer.h"
#include "credentials.h"
WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
StressServer<TCPClient> ss(1234,MAX_CLIENT,400);
StressServer<TCPClient> ss(1234,10,400);
unsigned long ts(0);
@ -20,7 +22,7 @@ void setup()
gotIpEventHandler = WiFi.onStationModeGotIP(&(gotIp));
disconnectedEventHandler = WiFi.onStationModeDisconnected(&(lostCon));
WiFi.persistent(false);
WiFi.begin("Livebox-E46E","patricia");//Connect to AccessPoint as a STAtion
WiFi.begin(SSID,PASSWD);//Connect to AccessPoint as a STAtion
Serial.printf("Setup end\n");
}
@ -42,7 +44,7 @@ void debugInfo()
uint8_t frag;
ESP.getHeapStats(&freeMem, &biggestContigMemBlock, &frag);
Serial.printf("Free MEM : %lu\nHeap Frag : %u\nMax Block : %u\n",freeMem, frag, biggestContigMemBlock);
Serial.printf("Free MEM : %lu\nHeap Frag : %u\nMax Block : %u\nRunning since %u s\n",freeMem, frag, biggestContigMemBlock, millis()/1000);
}
void gotIp(const WiFiEventStationModeGotIP& event)