-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Build error: conversion from 'const ip_addr_t {aka const ip_addr}' to non-scalar type 'ip_addr_t {aka ip_addr}' requested #3760
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
Comments
Ciao :-) Try this: In file: IPAddress WiFiSTAClass::dnsIP(uint8_t dns_no) In file: IPAddress ETHClass::dnsIP(uint8_t dns_no) This fix is from version 4.0 of the arduino-esp32 found here: If you get the error "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least the path in menuconfig is: component config > mbedTLS > TLS key exchange method > enable pre-shared keys & enable psk Ivan |
Incorporates a patch from @IvanPorro: espressif#3760 (comment) I don't know whether this will compile with <3.3.2, as the API has changed.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
@me-no-dev I think this fix should be included in master, because it generates a build error when using arduino as component of IDF 3.3.2 without it |
Incorporates a patch from @IvanPorro: espressif#3760 (comment) I don't know whether this will compile with <3.3.2, as the API has changed.
What you are trying to do? Compile my esp32-arduino library with sdkconfig custom value (i need more of 3 BLE Max Connection)
Describe your system: PC with Ubuntu desktop
Describe what is failing.
I try to compiling esp32-arduino library following this guide:
https://github.com/espressif/arduino-esp32/blob/master/docs/lib_builder.md
I get this error:
/home/gianluca/esp32-arduino-lib-builder/components/arduino/libraries/WiFi/src/WiFiSTA.cpp: In member function 'IPAddress WiFiSTAClass::dnsIP(uint8_t)':
/home/gianluca/esp32-arduino-lib-builder/components/arduino/libraries/WiFi/src/WiFiSTA.cpp:491:37: error: conversion from 'const ip_addr_t {aka const ip_addr}' to non-scalar type 'ip_addr_t {aka ip_addr}' requested **
ip_addr_t dns_ip = dns_getserver(dns_no);
^
/home/gianluca/esp32-arduino-lib-builder/components/arduino/libraries/WiFi/src/ETH.cpp: In member function 'IPAddress ETHClass::dnsIP(uint8_t)':
/home/gianluca/esp32-arduino-lib-builder/components/arduino/libraries/WiFi/src/ETH.cpp:196:37: error: conversion from 'const ip_addr_t {aka const ip_addr}' to non-scalar type 'ip_addr_t {aka ip_addr}' requested**
ip_addr_t dns_ip = dns_getserver(dns_no);
Where is the problem?
The text was updated successfully, but these errors were encountered: