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

[Suggestion] Esp8266 esp-wifi Print IP #11844

Closed
mmaxus35 opened this issue Jul 15, 2019 · 0 comments
Closed

[Suggestion] Esp8266 esp-wifi Print IP #11844

mmaxus35 opened this issue Jul 15, 2019 · 0 comments

Comments

@mmaxus35
Copy link

mmaxus35 commented Jul 15, 2019

I have a small suggestion. In esp8266 and esp32 boards assigned ip's is not prompted to screen. It would be better to have a fuction or auto-feature when it is connected to access point.

Until now: i also tried to write ip address by manipulating esp_wifi_netdev.c file. However it end up failure. It may be better to add this fuction in esp_wifi module. @gschorcht

Solved!
I solved my question using nano coap server example.

Add this before main function.


/* import "ifconfig" shell command, used for printing addresses */ extern int _gnrc_netif_config(int argc, char **argv);

Add this where you desire to print


/* print network addresses */
puts("Configured network interfaces:");
_gnrc_netif_config(0, NULL);

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

1 participant