Azure-Samples / iot-hub-c-thingdev-getstartedkit

Get started with The Sparkfun Thingdev Azure IoT Starter Kit
MIT License
12 stars 15 forks source link

initWiFi is probably wrong #23

Closed alonf closed 8 years ago

alonf commented 8 years ago

I think that the code should be:

status = WiFi.begin(ssid, pass);

while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
}

Serial.println("Connected to wifi");
Ilias-Tsigkogiannis commented 8 years ago

Thanks for your comment. This has been fixed.