Skip to content
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

Compiling with WiFi.ping() throws undefined reference to `arduino::WiFiClass::ping(arduino::String const&, unsigned char)' #863

Closed
endreola opened this issue Apr 6, 2024 · 1 comment

Comments

@endreola
Copy link

endreola commented Apr 6, 2024

Greetings,

I was informed that with Arduino Mbed products (like the Giga r1 Wifi board in particular) have undefined references to library [https://github.com/arduino/ArduinoCore-mbed/blob/4.1.1/libraries/WiFi/src/WiFi.h#L193-L195]

Is it possible to get ICMP protocol Ping added, in particular type 8 (echo) & type 0 (echo reply) so wifi.ping() function can work as expected?

Arduino IDE v2 throws error while trying to compile pingResult = WiFi.ping(hostName, 128); or pingResult = WiFi.ping(hostName);. Ref full error msg below:

/private/var/folders/4b/qckrgbg9363dj_tb8wbv29zr0000gn/T/arduino/sketches/A827478510E08D3B5CCE11A06C8E0BA9/sketch/GIGA_Wifi.ino.cpp.o: In function `loop':
/Users/xxxxxxxxxxxx/Documents/Arduino/GIGA_Wifi/GIGA_Wifi.ino:66: undefined reference to `arduino::WiFiClass::ping(arduino::String const&, unsigned char)'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Regards

@facchinm
Copy link
Member

facchinm commented Apr 8, 2024

Hi @endreola , WiFi.ping() is not implemented and will be removed by #862 , sorry for the lack of consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants