It will connect to a wifi network and setup up a webserver with test data.
- Copy your test data to
/data/testData
folder. See test data files in/scripts
.
- Change the "board" in
/platformio.ini
to your used board. - Open
/src/main.cpp
and setWIFI_STATION_SSID
to your wifi network SSID andWIFI_STATION_PASSWORD
to your wifi network password.
- Build and upload filesystem.
- Build and upload software.
- Connect to serial and monitor output.
- Open
/scripts/test.sh
and change:- Set
serverIpAddress
to the test webserver ip-address, see console output. - Set
testDataFilename
according to your choosen test data, see/data/testData
folder.
- Set
- Open git bash console.
- Change to folder
/scripts
- Run the script:
$ ./test.sh <use-case> <number-of-downloads>
<use-case>
- "uc1": Download in webserver context.
- "uc2": Download in main loop context.
<number-of-downloads>
: Total number of consequtive downloads.
Example:
$ ./test.sh uc1 3
If you have further ideas or you found some bugs, great! Create a issue or if you are able and willing to fix it by yourself, clone the repository and create a pull request.
The whole source code is published under the MIT license. Consider the different licenses of the used third party libraries too!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.