Compare commits
No commits in common. "71cc0a6d8a440a3b111dc31220c4792ab101f1fd" and "4c4832e475ac4664627383c49e7974191c1c1acf" have entirely different histories.
71cc0a6d8a
...
4c4832e475
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,3 @@
|
|||||||
*.o
|
*.o
|
||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
credentials.h
|
|
@ -2,15 +2,13 @@
|
|||||||
* This sketch was written in order to stress test the TCPServer and WEBServer classes used in my project and
|
* 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 ...
|
* hopefully find why the WEBServer class isn't stable ...
|
||||||
* This test is aimed toward spotting possible causes of crash
|
* 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
|
* Created by Anatole SCHRAMM-HENRY the 12/12/2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "StressServer.h"
|
#include "StressServer.h"
|
||||||
#include "credentials.h"
|
|
||||||
|
|
||||||
WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
|
WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
|
||||||
StressServer<TCPClient> ss(1234,10,400);
|
StressServer<TCPClient> ss(1234,MAX_CLIENT,400);
|
||||||
|
|
||||||
unsigned long ts(0);
|
unsigned long ts(0);
|
||||||
|
|
||||||
@ -22,7 +20,7 @@ void setup()
|
|||||||
gotIpEventHandler = WiFi.onStationModeGotIP(&(gotIp));
|
gotIpEventHandler = WiFi.onStationModeGotIP(&(gotIp));
|
||||||
disconnectedEventHandler = WiFi.onStationModeDisconnected(&(lostCon));
|
disconnectedEventHandler = WiFi.onStationModeDisconnected(&(lostCon));
|
||||||
WiFi.persistent(false);
|
WiFi.persistent(false);
|
||||||
WiFi.begin(SSID,PASSWD);//Connect to AccessPoint as a STAtion
|
WiFi.begin("Livebox-E46E","patricia");//Connect to AccessPoint as a STAtion
|
||||||
Serial.printf("Setup end\n");
|
Serial.printf("Setup end\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +42,7 @@ void debugInfo()
|
|||||||
uint8_t frag;
|
uint8_t frag;
|
||||||
ESP.getHeapStats(&freeMem, &biggestContigMemBlock, &frag);
|
ESP.getHeapStats(&freeMem, &biggestContigMemBlock, &frag);
|
||||||
|
|
||||||
Serial.printf("Free MEM : %lu\nHeap Frag : %u\nMax Block : %u\nRunning since %u s\n",freeMem, frag, biggestContigMemBlock, millis()/1000);
|
Serial.printf("Free MEM : %lu\nHeap Frag : %u\nMax Block : %u\n",freeMem, frag, biggestContigMemBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gotIp(const WiFiEventStationModeGotIP& event)
|
void gotIp(const WiFiEventStationModeGotIP& event)
|
||||||
|
Loading…
Reference in New Issue
Block a user