Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
628 stars 200 forks source link

it was missing "WiFi.mode(WIFI_AP);" #127

Open mischaka opened 6 years ago

mischaka commented 6 years ago

Hello I am modifying your code to make your own version of esp-raido. I would like to publish the code on my german website. I also give a link and a reference to your code. It's OK?

I have found solution to a problem. problem In acces point mode sites load slowly or not completely. solution it was missing "WiFi.mode(WIFI_AP);"

if ( WiFi.waitForConnectResult() != WL_CONNECTED ) // Try to connect { ____WiFi.mode(WIFI_AP);___ dbgprint ( "WiFi Failed! Trying to AP with name %s and password %s.", NAME, NAME ) ; WiFi.softAP ( NAME, NAME ) ; // This ESP will be an AP delay ( 5000 ) ; pfs = dbgprint ( "IP = 192.168.4.1" ) ; // Address if AP return false ; }

Edzelf commented 6 years ago

Yes, you may use the code anyway you want..