[gnoduino] Remove WiFi library



commit b48ad4104ea27b0d5f3848ec841ad65e61147cef
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Mon May 27 23:27:47 2013 +0200

    Remove WiFi library

 .../examples/UdpNtpClient/UdpNtpClient.ino         |   49 +-
 libraries/WiFi/WiFi.cpp                            |  231 --------
 libraries/WiFi/WiFi.h                              |  227 --------
 libraries/WiFi/WiFiClient.cpp                      |  179 -------
 libraries/WiFi/WiFiClient.h                        |   40 --
 libraries/WiFi/WiFiServer.cpp                      |   89 ---
 libraries/WiFi/WiFiServer.h                        |   27 -
 libraries/WiFi/WiFiUdp.cpp                         |  163 ------
 libraries/WiFi/WiFiUdp.h                           |   61 ---
 .../ConnectNoEncryption/ConnectNoEncryption.ino    |  121 -----
 .../examples/ConnectWithWEP/ConnectWithWEP.ino     |  126 -----
 .../examples/ConnectWithWPA/ConnectWithWPA.ino     |  116 ----
 .../WiFi/examples/ScanNetworks/ScanNetworks.ino    |  119 -----
 .../SimpleWebServerWiFi/SimpleWebServerWiFi.ino    |  129 -----
 .../examples/WiFiChatServer/WiFiChatServer.ino     |  111 ----
 .../WiFiPachubeClient/WiFiPachubeClient.ino        |  190 -------
 .../WiFiPachubeClientString.ino                    |  177 ------
 .../WiFiTwitterClient/WiFiTwitterClient.ino        |  163 ------
 .../examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino |  182 -------
 .../WiFiUdpSendReceiveString.ino                   |  112 ----
 .../WiFi/examples/WiFiWebClient/WiFiWebClient.ino  |  121 -----
 .../WiFiWebClientRepeating.ino                     |  138 -----
 .../WiFi/examples/WiFiWebServer/WiFiWebServer.ino  |  134 -----
 libraries/WiFi/keywords.txt                        |   51 --
 libraries/WiFi/utility/debug.h                     |   77 ---
 libraries/WiFi/utility/server_drv.cpp              |  308 -----------
 libraries/WiFi/utility/server_drv.h                |   41 --
 libraries/WiFi/utility/socket.c                    |   20 -
 libraries/WiFi/utility/socket.h                    |   87 ---
 libraries/WiFi/utility/spi_drv.cpp                 |  506 ------------------
 libraries/WiFi/utility/spi_drv.h                   |   83 ---
 libraries/WiFi/utility/wifi_drv.cpp                |  560 --------------------
 libraries/WiFi/utility/wifi_drv.h                  |  248 ---------
 libraries/WiFi/utility/wifi_spi.h                  |  153 ------
 libraries/WiFi/utility/wl_definitions.h            |   52 --
 libraries/WiFi/utility/wl_types.h                  |   31 --
 36 files changed, 24 insertions(+), 5198 deletions(-)
---
diff --git a/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino 
b/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino
index 6b3b53d..c67c3fe 100644
--- a/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino
+++ b/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino
@@ -45,6 +45,30 @@ byte packetBuffer[ NTP_PACKET_SIZE]; //buffer to hold incoming and outgoing pack
 // A UDP instance to let us send and receive packets over UDP
 EthernetUDP Udp;
 
+// send an NTP request to the time server at the given address
+unsigned long sendNTPpacket(IPAddress& address)
+{
+  // set all bytes in the buffer to 0
+  memset(packetBuffer, 0, NTP_PACKET_SIZE);
+  // Initialize values needed to form NTP request
+  // (see URL above for details on the packets)
+  packetBuffer[0] = 0b11100011;   // LI, Version, Mode
+  packetBuffer[1] = 0;     // Stratum, or type of clock
+  packetBuffer[2] = 6;     // Polling Interval
+  packetBuffer[3] = 0xEC;  // Peer Clock Precision
+  // 8 bytes of zero for Root Delay & Root Dispersion
+  packetBuffer[12]  = 49;
+  packetBuffer[13]  = 0x4E;
+  packetBuffer[14]  = 49;
+  packetBuffer[15]  = 52;
+
+  // all NTP fields have been given values, now
+  // you can send a packet requesting a timestamp:
+  Udp.beginPacket(address, 123); //NTP requests are to port 123
+  Udp.write(packetBuffer,NTP_PACKET_SIZE);
+  Udp.endPacket();
+}
+
 void setup() 
 {
  // Open serial communications and wait for port to open:
@@ -115,31 +139,6 @@ void loop()
   delay(10000); 
 }
 
-// send an NTP request to the time server at the given address 
-unsigned long sendNTPpacket(IPAddress& address)
-{
-  // set all bytes in the buffer to 0
-  memset(packetBuffer, 0, NTP_PACKET_SIZE); 
-  // Initialize values needed to form NTP request
-  // (see URL above for details on the packets)
-  packetBuffer[0] = 0b11100011;   // LI, Version, Mode
-  packetBuffer[1] = 0;     // Stratum, or type of clock
-  packetBuffer[2] = 6;     // Polling Interval
-  packetBuffer[3] = 0xEC;  // Peer Clock Precision
-  // 8 bytes of zero for Root Delay & Root Dispersion
-  packetBuffer[12]  = 49; 
-  packetBuffer[13]  = 0x4E;
-  packetBuffer[14]  = 49;
-  packetBuffer[15]  = 52;
-
-  // all NTP fields have been given values, now
-  // you can send a packet requesting a timestamp:                
-  Udp.beginPacket(address, 123); //NTP requests are to port 123
-  Udp.write(packetBuffer,NTP_PACKET_SIZE);
-  Udp.endPacket(); 
-}
-
-
 
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]