Commit Graph

192 Commits

Author SHA1 Message Date
JChristensen c01172cd1b Changed EthernetClient to use IANA recommended ephemeral port range, 49152-65535. 2014-10-05 22:41:39 -04:00
Fede85 f85a72847a Ethernet: UdpNtpClient.ino now uses DNS to connect to the NTP server 2014-09-25 14:50:42 +02:00
Fede85 9a64c1bb1c removed Xively and Cosm examples 2014-09-25 14:50:42 +02:00
PaulStoffregen a0f5a2ee4c Use SPI transaction in Ethernet W5100 init 2014-08-01 11:52:09 -07:00
PaulStoffregen 8aaca2fbb6 Use SPI transactions in Ethernet library 2014-08-01 06:34:34 -07:00
PaulStoffregen 53924e9d58 Move Ethernet socket level stuff to utility/socket.cpp 2014-08-01 06:03:38 -07:00
Cristian Maglie 6200ec2039 Merge pull request #2194 from Fede85/ide-1.5.x_lib-description
Ide 1.5.x lib description
2014-07-21 12:16:20 +02:00
Fede85 b02e85ceb2 modified sentences in library.properties files 2014-07-18 19:41:34 +02:00
Matt Robinson 569c75246d Remove unused variable from ethernet socket utils
Remove the variable 'status' as this had a value assigned (from readSnSR),
but it was never used.
2014-07-17 16:49:10 +01:00
Cristian Maglie b673b72cfb Merge branch 'ide-1.5.x-warnings' of github.com:matthijskooijman/Arduino into ide-1.5.x 2014-04-20 19:36:29 +02:00
Matthijs Kooijman 9dca56dced Don't use IPAddress::_address from EthernetClass
EthernetClass is a friend class of IPAddress, so it is allowed to use
its _address attribute directly. However, it should be using
IPAddress::raw_address() instead, like all the other friend classes do.

This changes allows changing the _address attribute to fix some warnings
next.
2014-02-19 16:09:29 +01:00
Cristian Maglie 76ded605ff Updated all library.properties to 1.5 rev2 lib format 2014-02-18 22:32:24 +01:00
Fede85 90fb863c01 better Client.stop() handling in WebClientRepeating and WifiWebClientRepeating examples 2014-01-21 20:38:52 +01:00
Cristian Maglie 618f537691 Ethernet library refactoring
- removed arch folder
- merged socket.c and w5100.c for SAM and AVR, this is preparatory
  to make library vanilla
2014-01-05 08:50:52 +01:00
Cristian Maglie d20c028469 Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
	libraries/Ethernet/EthernetClient.cpp
2013-12-09 18:31:43 +01:00
ntruchsess 29954567e7 update AdvancedChatServer.ino, add operator!= 2013-12-06 23:19:19 +01:00
ntruchsess fbdf3a18ee remove all Changes besides operator== 2013-12-06 19:05:31 +01:00
ntruchsess 889e1f6583 apply AdvancedChatServer.ino changes to renamed ChatServer.ino 2013-11-28 09:58:27 +01:00
ntruchsess b5c500f5b4 revert Chatserver example, create new AdvancedChatServer based on it 2013-11-28 09:43:46 +01:00
ntruchsess a27604f59e add some lines of comment to ChatServer.ino, remove redundant assignment of Client-instance 2013-11-27 17:49:20 +01:00
ntruchsess 937bce1a0b add localPort to EthernetClient, simplify operator== 2013-11-27 10:40:57 +01:00
ntruchsess ca37de4ba4 add operator==, remoteIP and remotePort to EthernetClient 2013-11-26 00:12:44 +01:00
Cristian Maglie 853be57648 Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
	libraries/Ethernet/examples/XivelyClient/XivelyClient.ino
	libraries/Ethernet/examples/XivelyClientString/XivelyClientString.ino
	libraries/GSM/examples/GSMXivelyClient/GSMXivelyClient.ino
	libraries/GSM/examples/GSMXivelyClientString/GSMXivelyClientString.ino
	libraries/Servo/examples/Knob/Knob.ino
	libraries/Servo/examples/Sweep/Sweep.ino
	libraries/WiFi/examples/WiFiXivelyClient/WiFiXivelyClient.ino
	libraries/WiFi/examples/WiFiXivelyClientString/WiFiXivelyClientString.ino
2013-11-11 12:40:59 +01:00
Scott Fitzgerald cb9686dc33 Updates to a number of Examples
removed pachube examples, added xively examples. changes to the Servo
examples
2013-11-08 18:46:27 +04:00
Federico Fissore b4c68b3dff Run new astyle formatter against all the examples 2013-10-21 09:58:40 +02:00
Cristian Maglie 88def54082 Fixed wrong behaviour of EthernetClient::flush().
Fixes #1576
2013-09-23 15:46:51 +02:00
Cristian Maglie db640e08cd Ethernet: removed useless casts in avr/w5100 class 2013-09-22 15:35:38 +02:00
Justin Paulin 5ddbab3693 Fixed a typo in the WebServer example. 2013-09-09 19:47:24 +02:00
Cristian Maglie 07d9d558b5 Updated libraries metadata 2013-08-08 16:40:55 +02:00
Justin Paulin 24df3ab28d Fixed a typo in the WebServer example. 2013-07-29 13:40:51 -04:00
Fede85 d94e7e8ae0 deleted Twitter examples from Ethernet and GSM libraries 2013-07-10 12:37:02 +02:00
Fede85 9454816162 Ethernet, SD and LiquidCrystal to the new library format 2013-06-26 19:13:04 +02:00
Fede85 a138309ff6 WebServer example: Added comments 2013-04-17 11:37:31 +02:00
Fede85 ce3554261d Moved refresh client from html meta tag to http header
Fixes #953
2013-04-16 21:37:41 +02:00
Fede85 2e6023bc2a edited some ethernet ad wifi examples 2013-04-11 17:36:15 +02:00
Fede85 1a0dcb2959 closes #954. Typo in WebServer sketches 2013-02-07 16:24:56 +01:00
Richard Sim cce70d269c * Fixed memory leak when calling Ethernet.begin() multiple times
* Ensure the UDP socket is closed before trying to open it
2012-12-12 12:50:21 +01:00
Cristian Maglie 1b7fd24480 Fixed server address on UdpNtpClient example.
Fixes #1156
2012-12-10 11:50:49 +01:00
Scott 9a13d211ba Fixed typo in PachubeClientString example 2012-10-12 15:59:45 -04:00
Scott 72595f86c4 Modified pachube Ethernet Client String example and removed Cosm examples 2012-09-10 12:02:59 -04:00
Zach Eveland 32e365b480 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-05-15 15:40:23 -04:00
Tom Igoe 2e30d3891c spell check on PachubeClientString 2012-05-14 16:18:26 -04:00
Tom Igoe 08cb1983d7 Added Cosm Clients to replace Pachube Clients due to Pachube.com
rebranding
2012-05-14 16:16:42 -04:00
David A. Mellis 2a48aa5cbc Merge pull request #70 from johannrichard/ethernet-close_wait
EthernetClient: recycle sockets in CLOSE_WAIT status
2012-05-06 15:08:39 -07:00
Zach Eveland 573d08c4fa Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-04-20 10:10:46 -04:00
Tom Igoe a69bd00c68 Update to WebClientRepeating comments 2012-04-19 15:03:23 -04:00
Tom Igoe 2baf577437 Added WebClientRepeating example 2012-04-19 15:02:21 -04:00
Tom Igoe 6f93d3fc17 Updated all comments for while (!Serial) additions to serial-based examples 2012-04-09 10:48:40 -04:00
Johann Richard 47c46c4f25 Fix for CLOSE_WAIT Bug
Fir for an EthernetClient bug, as per the following thread http://forum.freetronics.com/viewtopic.php?t=176

Kudos to mr-russ for finding a fix.
2012-04-05 22:13:49 +02:00
Tom Igoe 202bb102a0 Updated all serial in setup examples with a note about the serial check 2012-04-02 11:11:46 -04:00
Tom Igoe a631e4f834 Added Serial port check to all examples using Serial statements in the setup 2012-04-02 09:07:58 -04:00
Zach Eveland a0f1f1a930 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-03-24 09:30:17 -04:00
Tom Igoe da09e0c867 Updated Ethernet WebServer example to give more diagnostic info 2012-03-20 10:37:15 -04:00
Tom Igoe c9ded42197 Updated PachubeClientString and PachubeClient examples for Ethernet 2012-03-16 10:48:18 -04:00
Zach Eveland d169114205 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-03-14 15:40:29 -04:00
Tom Igoe 7f11df115d Updated ChatServer 2012-03-12 15:30:18 -04:00
Zach Eveland 8a35793794 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
Conflicts:
	.gitignore
2012-03-03 13:28:39 -05:00
David A. Mellis 9f3438c189 Adding Ethernet.maintain() to update DHCP leases (Peter Magnusson)
returns:
    0: nothing happened
    1: renew failed
    2: renew success
    3: rebind fail
    4: rebind success

http://code.google.com/p/arduino/issues/detail?id=716
2012-03-02 18:51:48 -05:00
Tom Igoe f415edfc3b upated PachubeClientString to fix interval bug 2012-03-02 17:21:12 -05:00
Tom Igoe 8ef8be6ccd Adjusted interval bug in TwitterClient 2012-03-02 17:20:09 -05:00
Tom Igoe 59f68ebd8c Updated pachubeClientStirng to fix posting interval bug 2012-03-02 17:17:15 -05:00
Tom Igoe 366a490973 Updated TwitterClient example to fix timing bug 2012-03-02 13:14:07 -05:00
Zach Eveland d10b5da4f6 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-02-27 21:21:34 -05:00
Tom Igoe 9f755d159a Updated Ethernet PachubeClient and PachubeClientString examples to use Pachube API 2.0 2012-02-27 11:51:13 -05:00
Zach Eveland 65ddc6c43b Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader 2012-02-22 15:19:32 -05:00
David A. Mellis 561cd7054d Fixing (maybe) a bug involving multiple received UDP packets.
http://code.google.com/p/arduino/issues/detail?id=669
2012-02-14 16:41:22 -08:00
Cristian Maglie 57b8713cab Moved libraries folder inside platform folder. Now libraries and examples are searched per board/platform 2012-01-04 15:14:51 +01:00
Zach Eveland 531c3bfe28 Merge branch 'master' of github.com:arduino/32U4 into new-extension 2011-12-18 12:40:56 -05:00
David A. Mellis 64c8b89b5f Fixing ethernet library on Leonardo (correcting SS pin for 32U4). 2011-12-15 15:33:47 -05:00
David A. Mellis b8fbffeac4 Fixing DHCP hostname (peter).
http://code.google.com/p/arduino/issues/detail?id=742
2011-12-14 00:55:10 -05:00
David A. Mellis 7c90d9d8b5 Changing recv() to return signed int16 (in Ethernet socket.cpp). S. Wallace
http://code.google.com/p/arduino/issues/detail?id=516
2011-12-08 17:29:28 -05:00
David A. Mellis 597da2e45d Ethernet library fix for avr-gcc v4.5.1 (and maybe others). (SurferTim)
This is a change in a few lines for combining two 8-bit values into a 16-bit one.  For some reason, the old way doesn't seem to work properly with certain gcc versions.

http://code.google.com/p/arduino/issues/detail?id=605
2011-12-08 16:50:59 -05:00
Zach Eveland a6a59f1783 Revert "Merge branch 'master' of github.com:arduino/Arduino into diskloader_reboot"
This reverts commit df9835efaf, reversing
changes made to ec45af8bfa.

Conflicts:

	hardware/arduino/variants/mega/pins_arduino.h
	libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
2011-10-27 11:45:13 -04:00
Tom Igoe d16eeb0af3 Modified Pachube examples to use manual Ethernet config if DCHP fails. 2011-10-26 13:22:30 -04:00
David A. Mellis 9296f1db31 Fixing bug in Ethernet (recv() in socket.cpp). (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=670
2011-10-10 11:49:50 -04:00
David A. Mellis 965480f148 Fixing warnings in Ethernet library (Paul Stoffregen).
http://code.google.com/p/arduino/issues/detail?id=208
2011-10-02 10:17:33 -04:00
David A. Mellis 7d8d20894c Making Print::write(char *) non-virtual.
http://code.google.com/p/arduino/issues/detail?id=607
2011-09-07 18:41:05 -04:00
David A. Mellis da5ccf4eaf Merge remote-tracking branch 'amcewen/wifly_integration' into new-extension 2011-08-31 14:25:04 -04:00
amcewen a6093a8d91 Created an abstract base class UDP to match the Client and Server classes, and reworked the Ethernet library to use it and derive EthernetUDP. 2011-08-30 21:27:31 +01:00
Tom Igoe 35777612c0 Changed all .pde examples to .ino
All examples in /build/shared/examples/ and /libraries/ have had their
extensions changed to .ino
2011-08-30 15:33:32 -04:00
amcewen ad5dead85a Changed names of the Ethernet classes: Client -> EthernetClient, NetClient -> Client, and basic testing performed 2011-08-29 22:36:28 +01:00
amcewen b7533c1839 Final changes to integrate latest core updates to WiFly branch 2011-08-28 22:26:07 +01:00
amcewen e1748e79d7 Merge branch 'master' into wifly_integration 2011-08-28 20:28:53 +01:00
amcewen 4588120106 Merge branch 'new-extension' of https://github.com/arduino/Arduino 2011-08-27 23:53:42 +01:00
David A. Mellis b73cf39d94 Moving write errors out of return value into separate API methods.
write(), print(), println() now return size_t (and don't use negative values to signal errors).
Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors.

http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26 16:08:14 -04:00
David A. Mellis 929597375b Changing from long to ssize_t (int) for write(), print(), println() return. 2011-08-26 14:20:41 -04:00
David A. Mellis 8059abe581 write(), print(), and println() now return number of bytes written.
The type is long, and negative values indicate errors.  Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
amcewen 6b2dec0d01 Fixed bug where the DHCP client didn't correctly handle a response containing more than one DNS server address. Fixes issue 569. 2011-07-07 21:59:35 +01:00
amcewen ffd2cec8a0 Tweak to defines to support a couple more AVRs - the ATmega32U4 and AT90USB1286, so it doesn't need to be patched for the Teensy boards. 2011-06-16 20:16:26 +01:00
amcewen 789e22add2 Added a way to specify the DNS server to use with static IP 2011-06-12 22:02:25 +01:00
David A. Mellis 88ebc82ba5 Merge branch 'new-extension' of github.com:arduino/Arduino into new-extension 2011-06-04 09:20:33 -04:00
David A. Mellis 87a04fc064 Added Printable interface class to allow printing of classes such as IPAddress 2011-06-04 09:19:17 -04:00
Tom Igoe 4805fea3b2 Moving recent commits to new-extension branch 2011-05-21 13:22:43 -04:00
David A. Mellis b6ff5d58df Changing #include "wiring.h" to #include "Arduino.h" in Dns.cpp. 2011-04-16 20:03:01 -04:00
amcewen b455e81b76 Proposed fix for issue 243, adding DNS to the Ethernet library. Uses a slightly modified version of the agreed API as the host/port parameters have been moved from the Client constructor to the Client::connect methods. This means it's possible for errors to be returned if the DNS lookup fails and also reduces the RAM footprint of the Client class as it no longer needs to store the host/port for later use in Client::connect. 2011-04-16 19:38:36 -04:00
amcewen 1b56de694b Fixed bug in parsePacket where it could block indefinitely if called when no packets were available to be read. 2011-04-16 19:38:11 -04:00
amcewen a9c2ebf455 Added new method to UDP to take a hostname rather than an IP address. Part of issue 243 2011-04-16 19:38:11 -04:00
Tom Igoe abfe299bfd Added DHCP address printer and DNS-based web client, based on Adrian McEwen's additions to the Ethernet library 2011-04-12 09:25:37 -04:00
amcewen 17d8fcb46d Pulled out Server API into the NetServer base class, and a few minor changes to get the NetClient API to work well with the WiFly library 2011-03-31 16:19:17 +01:00
amcewen a5f6a42dd7 Pulled out Client API into a base class to allow multiple derived classes to use it, and moved it (plus IPAddress) out of the Ethernet library so that other libraries can find it. First steps in integrating the WiFly code so it's easier to switch between that and Ethernet 2011-03-28 12:08:53 +01:00