【问题标题】:I cannot connect to my Arduino WiFi shield server, but I can ping it我无法连接到我的 Arduino WiFi shield 服务器,但我可以 ping 它
【发布时间】:2013-06-28 05:13:15
【问题描述】:

我可以成功 ping Arduino WiFi shield 的 IP,但是当我通过 Chrome 连接到它时,我得到“糟糕!Google Chrome 无法连接到 [IP here]”。

这是我的详细信息:

【问题讨论】:

    标签: networking arduino wifi ping


    【解决方案1】:

    在网上浏览了很多天后,我终于找到了解决方案(位于here):

    Arduino IDE 版本应该从 1.0.5 降级到 1.0.2。

    卸载您的更高版本并重新安装版本 1.0.2,如有必要,再次安装您设备的驱动程序,并使用旧版本的 Arduino IDE 上传代码。

    我希望这可以帮助和我有同样问题的其他人。

    【讨论】:

    【解决方案2】:

    您必须在此处https://github.com/arduino/wifishield 从 github 下载最新的 Wifi 库并替换您现有的库... 就我而言,它是在 arduino 1.0.5 固件更新后解决的

    【讨论】:

      【解决方案3】:

      你好,我遇到了同样的问题 我必须升级我的 wifi shield,并从 arduino (1.0.6) 下载最新版本,然后你会看到你可以在你的局域网内访问你的 wifi shield。

      此示例使用静态 IP,可能有用

      问候

      #include <SPI.h>
      #include <WiFi.h>
      
      // the IP address for the shield:
      IPAddress ip(192, 168, 1, 200);    
      
      char ssid[] = "xxxxxxxx";    // your network SSID (name) 
      char pass[] = "xxxxxxxx";    // your network password (use for WPA, or use as key for WEP)
      
      int status = WL_IDLE_STATUS;
      
      void setup()
      {  
        // Initialize serial and wait for port to open:
        Serial.begin(9600); 
        while (!Serial) {
          ; // wait for serial port to connect. Needed for Leonardo only
        }
      
        // check for the presence of the shield:
        if (WiFi.status() == WL_NO_SHIELD) {
          Serial.println("WiFi shield not present"); 
          while(true);  // don't continue
        } 
      
        WiFi.config(ip);
      
        // attempt to connect to Wifi network:
        while ( status != WL_CONNECTED) { 
          Serial.print("Attempting to connect to SSID: ");
          Serial.println(ssid);
          // Connect to WPA/WPA2 network. Change this line if using open or WEP network:    
          status = WiFi.begin(ssid, pass);
      
          // wait 10 seconds for connection:
          delay(10000);
        }
      
        // print your WiFi shield's IP address:
        Serial.print("IP Address: ");
        Serial.println(WiFi.localIP()); 
      }
      
      void loop () {}
      

      【讨论】:

        猜你喜欢
        • 2015-04-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-09-24
        • 2017-09-23
        • 1970-01-01
        • 1970-01-01
        • 2014-10-16
        相关资源
        最近更新 更多