mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 10:44:29 +05:00
fix: scan networks on s3 fixed
This commit is contained in:
@@ -344,7 +344,11 @@ protected:
|
|||||||
auto apCount = WiFi.scanComplete();
|
auto apCount = WiFi.scanComplete();
|
||||||
if (apCount <= 0) {
|
if (apCount <= 0) {
|
||||||
if (apCount != WIFI_SCAN_RUNNING) {
|
if (apCount != WIFI_SCAN_RUNNING) {
|
||||||
|
#ifdef ARDUINO_ARCH_ESP8266
|
||||||
WiFi.scanNetworks(true, true);
|
WiFi.scanNetworks(true, true);
|
||||||
|
#else
|
||||||
|
WiFi.scanNetworks(true, true, true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
this->webServer->send(404);
|
this->webServer->send(404);
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<form action="/api/network/scan" id="network-scan">
|
<form action="/api/network/scan" id="network-scan">
|
||||||
<figure style="max-height: 25em;">
|
<div style="max-height: 25rem;" class="overflow-auto">
|
||||||
<table id="networks" role="grid">
|
<table id="networks" role="grid">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
</table>
|
</table>
|
||||||
</figure>
|
</div>
|
||||||
|
|
||||||
<button type="submit">Refresh</button>
|
<button type="submit">Refresh</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user