Hi, I buy Heltec Wifi Lora V3 (https://heltec.org/project/wifi-lora-32-v3/) and install all libraries (last version 1.0.0) and try a simple test:
/*
- This sketch demonstrates how to scan WiFi networks.
- The API is almost the same as with the WiFi Shield library,
- the most obvious difference being the different file you need to include:
*/
#include “WiFi.h”void setup()
{
Serial.begin(115200);
Serial.println(“Setup start *********************************************************”);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);Serial.println("Setup done");
}
void loop()
{
Serial.println(“scan start”);// WiFi.scanNetworks will return the number of networks found int n = WiFi.scanNetworks(); Serial.println("scan done"); if (n == 0) { Serial.println("no networks found"); } else { Serial.print(n); Serial.println(" networks found"); for (int i = 0; i < n; ++i) { // Print SSID and RSSI for each network found Serial.print(i + 1); Serial.print(": "); Serial.print(WiFi.SSID(i)); Serial.print(" ("); Serial.print(WiFi.RSSI(i)); Serial.print(")"); Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*"); delay(10); } } Serial.println(""); // Wait a bit before scanning again delay(5000);
}
In Arduino IDE 2.2.1 (Ubuntu) select “Wifi Lora (V3) / Wirelles Shell (V3) / Wireless Stick Shell (V3)” in board manager.
In serial monitor I obtain only:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x400454d5
SPIWP:0xee
mode:QIO, clock div:2
load:0x3fce3808,len:0x43c
ets_loader.c 78
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x400454d5
SPIWP:0xee
mode:QIO, clock div:2
load:0x3fce3808,len:0x43c
ets_loader.c 78
But, I try another test and select ESP32-S3 Dev Module and program works!!! Any idea?
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
Setup start *********************************************************
Setup donescan start
scan done
3 networks found
Maybe DIO and QIO mode? But in Heltec Board no change this… and in ESP32-S3 DIO and QIO mode works.