ekstrand / ESP8266wifi

ESP8266 Arduino library with built in reconnect functionality
MIT License
453 stars 236 forks source link

Missing method for local IP #7

Closed rpseng closed 9 years ago

rpseng commented 9 years ago

Dear ekstrand,

First of all, nice work with this library!

Other libraries have a function called ESP8266Wifi.localIP which returns the local IP. Is there a similar function in your library?

All the best.

ekstrand commented 9 years ago

I have not needed one yet. If you would like to write one I would be glad to put it in! Have a lot on my plate right now soo it could otherwise be a while until I get the time to write it myself. /Jonas

21 maj 2015 kl. 23:31 skrev Rafael de Pelegrini Soares notifications@github.com:

Dear ekstrand,

First of all nice work with this library!

Other libraries have a function called ESP8266Wifi.localIP which returns the local IP. Is there a similar function in you library?

All the best.

— Reply to this email directly or view it on GitHub.

rpseng commented 9 years ago

Hi Jonas, thanks for the prompt reply. I don't actually need it either, just something nice to check if the module is working properly.

I'm not familiar with compiling an Arduino module. If I succeed I'll let you know.

All the best.

ekstrand commented 9 years ago

Ok, you could use the isconnectedtoap function for exactly that. It checks that the module has aquired a valid ip and not 0.0.0.0 :) Jonas

21 maj 2015 kl. 23:47 skrev Rafael de Pelegrini Soares notifications@github.com:

Hi Jonas, thanks for the prompt reply. I don't actually need it either, just something nice to check if the module is working properly.

I

— Reply to this email directly or view it on GitHub.