Skip to content

Arduino Nano ESP32 examples fail to build in Arduino IDE #7330

@gojimmypi

Description

@gojimmypi

Version

latest master

Description

When using the latest wolfSSL for Arduino with an Arduino Nano ESP32, the following error is observed when compiling the wolfssl_client example.

Note the wolfSSL library itself compiles and appears to be fully functional; only the example WiFi initialization is problematic.

C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino: In function 'int setup_network()':
C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino:375:26: error: 'WL_NO_MODULE' was not declared in this scope
     if (WiFi.status() == WL_NO_MODULE) {
                          ^~~~~~~~~~~~
C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino:375:26: note: suggested alternative: 'WL_NO_SHIELD'
     if (WiFi.status() == WL_NO_MODULE) {
                          ^~~~~~~~~~~~
                          WL_NO_SHIELD
C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino:381:22: error: 'class WiFiClass' has no member named 'firmwareVersion'
     String fv = WiFi.firmwareVersion();
                      ^~~~~~~~~~~~~~~
C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino:382:14: error: 'WIFI_FIRMWARE_LATEST_VERSION' was not declared in this scope
     if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\workspace\wolfssl-gojimmypi\IDE\ARDUINO\sketches\wolfssl_client\wolfssl_client.ino:382:14: note: suggested alternative: 'IO_MUX_DATE_VERSION'
     if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
              IO_MUX_DATE_VERSION
Multiple libraries were found for "WiFi.h"
  Used: C:\Users\gojimmypi\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.13\libraries\WiFi
  Not used: C:\Users\gojimmypi\Documents\Arduino\libraries\WiFiNINA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions