1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
amcewen
4000c9199b Added new method to UDP to take a hostname rather than an IP address. Part of issue 243 2011-02-04 21:15:42 +00:00
amcewen
5caad5bdb4 Added a method to read data into a char buffer so that character-based (rather than byte-based) operations don't require a cast. As requested by Tom Igoe. Part of the fix to issue 439. 2011-01-13 17:55:08 +00:00
amcewen
88e858f6e3 Fix for issue 439. UDP API changed to derive from Stream. The old sendPacket and readPacket calls have been removed, and replaced with Stream-derived alternatives which provide more commonality with other communications classes and to allow both buffered and full-packet-at-a-time uses. Also includes the introduction of an IPAddress class to make passing them around easier (and require fewer pointers to be exposed) 2011-01-10 14:54:29 +00:00
amcewen
ca07ac18f3 Update to the fix for Issue #436 - UdpClass renamed to UDP and the constructor moved into the .cpp to prevent compilation errors in certain conditions if w5100.h hasn't been included before Udp.h 2011-01-01 21:42:23 +00:00
amcewen
bc0f3c4fe1 Fixes to UDP so that it no longer has socket 0 hardcoded - all part of issue #436. UdpClass::begin now finds the first available free socket, or fails if they're all in use. UdpClass::stop added to release the socket once it is no longer needed. The global Udp object has also been removed and the examples updated to provide their own instance. Finally, in testing I noticed that the UdpNtpClient didn't print leading 0s if the minute or second was a single-digit, so have taken the opportunity to provide a simple fix for it. 2010-12-28 15:16:42 +00:00
Tom Igoe
addbdd7949 updating UDP library and examples with M. Margolis' changes and examples. 2010-09-17 14:17:01 +00:00
David A. Mellis
e24b135755 Adding SPI library and revising Ethernet library (Christian Maglie). 2010-08-02 18:59:44 +00:00