Skip to content

LWIP requires ipv6 when arduino as a component in esp-idf #9334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
dizcza opened this issue Mar 4, 2024 · 3 comments
Closed
1 task done

LWIP requires ipv6 when arduino as a component in esp-idf #9334

dizcza opened this issue Mar 4, 2024 · 3 comments
Labels
Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF Type: Question Only question

Comments

@dizcza
Copy link
Contributor

dizcza commented Mar 4, 2024

Board

esp32

Device Description

TTGO T8

Hardware Configuration

Build error

Version

other

IDE Name

idf

Operating System

Ubu 22.04

Flash frequency

doesn't matter

PSRAM enabled

yes

Upload speed

doesn't matter

Description

Hey come on can't you set up a template for build errors


using git commit 090bc7242cfd597a370d5eb711618b1dd3a0bee8

Arduino as a component

I have

CONFIG_LWIP_IPV6=n

in my sdkconfig.defaults and everything worked fine till I added arduino as a component in esp-idf v5.1.2-691-g7380f96017

Now I cannot compile the project. Removing the abusing line in the settings resolves the issue.


I opening the issue here because the error occurs while building arduino-esp32

Sketch

doesn't matter

Debug Message

/home/dizcza/Projects/Embedded/eclipse-workspace/esp32-sdpsensor/components/arduino/libraries/AsyncUDP/src/AsyncUDP.cpp: In member function 'IPv6Address AsyncUDP::listenIPv6()':
/home/dizcza/Projects/Embedded/eclipse-workspace/esp32-sdpsensor/components/arduino/libraries/AsyncUDP/src/AsyncUDP.cpp:813:33: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'type'
  813 |     if(!_pcb || _pcb->remote_ip.type != IPADDR_TYPE_V6){
      |                                 ^~~~
/home/dizcza/Projects/Embedded/eclipse-workspace/esp32-sdpsensor/components/arduino/libraries/AsyncUDP/src/AsyncUDP.cpp:816:40: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
  816 |     return IPv6Address(_pcb->remote_ip.u_addr.ip6.addr);

Other Steps to Reproduce

Related espressif/esp-idf#6935 espressif/esp-idf#2231

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@dizcza dizcza added the Status: Awaiting triage Issue is waiting for triage label Mar 4, 2024
@Jason2866
Copy link
Collaborator

Upcoming Arduino 3.0.0 needs IPv6 support enabled.

@dizcza
Copy link
Contributor Author

dizcza commented Mar 4, 2024

all right

@P-R-O-C-H-Y P-R-O-C-H-Y added Type: Question Only question Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF and removed Status: Awaiting triage Issue is waiting for triage labels Mar 5, 2024
@Koxx3
Copy link

Koxx3 commented May 21, 2024

this is really annoying since IPv6 use 7KB of RAM as described by Espressif documentation :
https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/lwip.html#lwip-ram-usage

really no plan to make it optionnal ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF Type: Question Only question
Projects
None yet
Development

No branches or pull requests

5 participants