WiFi shield not present


i bought new arduino wifi shield, upgraded firmware, , tried uploading simple sketch it's still saying 'wifi shield not present'.  removed jumper after installing firmware.  arduino board came arduino uno rev3 ultimate starter kit.  i've tried can find online, seems others have issue haven't found worked me yet.   :(


below output firmware update , sketch i'm testing with.

any or guidance appreciated!

thanks in advance.


jordan





sudo ./arduinowifishield_upgrade_mac.sh -a /applications/arduino-1.0.6.app/contents/resources/java -f shield

       arduino wifi shield upgrade
=========================================
disclaimer: access usb devices correctly, dfu-programmer needs used root. run script root.

****upgrade wifi shield firmware****

validating...
261594 bytes used (103.01%)

done. remove j3 jumper , press reset button on shield.
thank you!

------------------------------------------------------


#include <wifi.h>

char ssid[] = "enter ssid";                     // network ssid (name)

int status = wl_idle_status;                     // wifi radio's status

void setup() {
  //initialize serial , wait port open:
  serial.begin(9600);
    // check presence of shield:
   
  delay(10000);
 
  if (wifi.status() == wl_no_shield) {
    serial.println("wifi shield not present");
    // don't continue:
    while(true);
  }

  // attempt connect wifi network:
  while ( status != wl_connected) {
    serial.println(ssid);
    status = wifi.begin(ssid);

    // wait 10 seconds connection:
    delay(1000);
  }

  // once connected :
  serial.print("you're connected network");
  printcurrentnet();
  printwifidata();
}

void loop() {
  // check network connection once every 10 seconds:
  delay(10000);
  printcurrentnet();
}

void printwifidata() {
  // print wifi shield's ip address:
  ipaddress ip = wifi.localip();
  serial.print("ip address: ");

  serial.println(ip);
}

void printcurrentnet() {
  // print ssid of network you're attached to:
  serial.print("ssid: ");
  serial.println(wifi.ssid());
}



insure shield firmly inserted uno. icsp pins spi data lines, insure connected fully.

if have sd card in shield's slot, remove it.


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > WiFi shield not present


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code