+ default AP name if networks.txt is missing

ims100
Hansi, dl9rdz 2019-05-03 11:55:26 +02:00
rodzic c259e75ce6
commit 3ae104d10f
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -14,14 +14,12 @@ generate_website_index() {
echo '</header><section><h1 id="rdz_ttgo_sonde">rdz_ttgo_sonde</h1>' >> download.html
echo "<h2>Master repository</h2><ul>" >> download.html
for i in `ls master`; do
if [ "$i" = "update.ino.bin" ]; then continue; fi
TS=`git log master/$i | grep "Date:" | head -1 | awk '{$1="";$2="";$7="";print substr($0,3,length($0)-3)}'`
if [ -z "$TS" ]; then TS=`date`; fi
echo "<li><a href=\"master/$i\">$i</a> ($TS)</li>\n" >> download.html;
done
echo "</ul><h2>Development repository</h2><ul>" >> download.html
for i in `ls devel`; do
if [ "$i" = "update.ino.bin" ]; then continue; fi
TS=`git log devel/$i | grep "Date:" | head -1 | awk '{$1="";$2="";$7="";print substr($0,3,length($0)-3)}'`
if [ -z "$TS" ]; then TS=`date`; fi
echo "<li><a href=\"devel/$i\">$i</a> ($TS)</li>\n" >> download.html;

Wyświetl plik

@ -206,6 +206,8 @@ void setupWifiList() {
File file = SPIFFS.open("/networks.txt", "r");
if (!file) {
Serial.println("There was an error opening the file '/networks.txt' for reading");
networks[0].id = "RDZsonde";
networks[0].pw = "RDZsonde";
return;
}
int i = 0;