From 9db06f5be69b5a87b8d7ad0bfad62a1238c18202 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Sat, 12 Dec 2020 11:15:07 +0100 Subject: [PATCH] Updated the test header as well as other small things --- .../dataStructure_test/dataStructure_test.ino | 16 ++++++++-------- .../tcpServer_test/tcpServer_test.ino | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/software_test/dataStructure_test/dataStructure_test.ino b/src/software_test/dataStructure_test/dataStructure_test.ino index b7df9b1..d563cbe 100644 --- a/src/software_test/dataStructure_test/dataStructure_test.ino +++ b/src/software_test/dataStructure_test/dataStructure_test.ino @@ -1,7 +1,8 @@ /** * This sketch was written in order to test the List and Queue datastructures used in my project * This test was aimed toward spotting memory leaks - * Anatole SCHRAMM-HENRY 08/05/2019 + * Created by Anatole SCHRAMM-HENRY the 08/05/2019 + * Updated the 12/12/2020 */ #include "D:/Users/Think/Desktop/Mes documents/Programmation/Arduino/ESP8266_swiss_army_board/src/app/List.h" @@ -20,15 +21,15 @@ void setup() { void loop() { // put your main code here, to run repeatedly: - strList.addFirst(String("Vive l'esp")); + strList.addFirst(String("This is a test string")); strList.addLast(strList.removeFirstRef()); strList.addFirst(strList.removeLastRef()); - strList.addLast(String("Vive l'esp")); + strList.addLast(String("This is a test string")); - strQueue.add(String("Meme pas vrai")); + strQueue.add(String("An other test string")); delete strQueue.removeRef(); - strQueue.add(String("Meme pas vrai")); + strQueue.add(String("An other test string")); strQueue.remove(); if(millis() - timer >= 1000) { @@ -36,13 +37,12 @@ void loop() { timer = millis(); } - if(strList.count() > 20) + if(strList.count() > 500) { - //Serial.println("Cleared"); + Serial.println("Cleared"); strList.clear(); } strList.removeFirst(); - } diff --git a/src/software_test/tcpServer_test/tcpServer_test.ino b/src/software_test/tcpServer_test/tcpServer_test.ino index 008ce39..8cfc09a 100644 --- a/src/software_test/tcpServer_test/tcpServer_test.ino +++ b/src/software_test/tcpServer_test/tcpServer_test.ino @@ -1,6 +1,6 @@ /** * This sketch was written in order to developp and test the multi-client tcp server which will later be used in my project - * Anatole SCHRAMM-HENRY 08/05/2019 + * Created by Anatole SCHRAMM-HENRY the 08/05/2019 */ #include "TCPClient.h" @@ -27,7 +27,7 @@ void setup() { disconnectedEventHandler = WiFi.onStationModeDisconnected(&(lostCon)); WiFi.persistent(false); - WiFi.begin("freebox_Henry","eustache1930"); + WiFi.begin("SSID","PASSWORD"); } void debugInfo()