Skip to content

Compiling error Arduino IDE 2023  #4

@pllagunos

Description

@pllagunos

The following line of code seems to not be working anymore:
peerInfo.ifidx = ESP_IF_WIFI_STA;

I get the following error

In file included from sketch\ESP_NOW_2.ino.cpp:1:0:
C:\Users\..\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\cores\esp32/Arduino.h:194:12: error: 'std::round' has not been declared
 using std::round;
            ^
C:\Users\..\..\Documents\Arduino\..\ESP_NOW_2\ESP_NOW_2.ino: In function 'void initEspNow()':
ESP_NOW_2:139:20: error: cannot convert 'esp_interface_t' to 'wifi_interface_t' in assignment
   peerInfo.ifidx   = ESP_IF_WIFI_STA;
                    ^
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\..\..\..\Arduino15\packages\esp32\hardware\esp32\2.0.7\libraries\WiFi
 Not used: D:\Program Files\Arduino\libraries\WiFi
exit status 1
cannot convert 'esp_interface_t' to 'wifi_interface_t' in assignment

Metadata

Metadata

Assignees

No one assigned

    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