acrobotic / Ai_iOS_ESP8266

Example iOS Apps for interacting with the ESP8266 Development Board from devices running iOS.
Other
17 stars 13 forks source link

Wifi Setup #1

Open hemalbavisi opened 8 years ago

hemalbavisi commented 8 years ago

I flashed .ino file using Arduino but it's not working as expected. Program gets stuck in this loop and never comes out. I also checked my router settings but it seems to be okay (I am able to connect using my laptop). Any idea what could be the problem?

  // Wait for a successful connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print("WIFI Setup in progress.");
  }
datasith commented 8 years ago

Hmm, it usually gets stuck in that loop if your Wi-Fi credentials aren't correct. The SSID and password fields are case-sensitive, and if you have any spaces in either it might create a problem.

What's really going on is that even though the WiFi client starts by way of:

WiFi.begin(ssid, password);

If the connection never occurs, then WiFi.status() is never equal to WL_CONNECTED.

hemalbavisi commented 8 years ago

Thank you for your quick response! The issue is resolved. By the way, Can I set/assign server name and use it instead of IP Address?

datasith commented 8 years ago

Great to hear @hemalbavisi! Was the problem related to the Wi-Fi credentials (so that other users know)?

For setting up your ESP8266 on the network by a name rather than an IP address, you'll need to use mDNS. See this discussion for more info: https://github.com/esp8266/Arduino/issues/7

Happy tinkering!

sprokkie commented 6 years ago

is it possible that this vidop is updated to the latest version of xcode ? webview is no longer a good solution according to my version of xcode

datasith commented 6 years ago

@sprokkie yup, it's on my to-do list. Stay tuned!