Skip to content

Commit 26129b0

Browse files
committed
Upgrade UIP-library to latest. Recommend Arduino IDE 1.5.7 when compiling EtherentGateway sketch.
1 parent 27885fa commit 26129b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+588
-3799
lines changed

libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
*
1515
* The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program.
1616
*
17-
* COMPILING
18-
* You must make sure to disable DEBUG in Sensor.h before compiling this sketch. Othervise the sketch won't fit in program space when downloading.
19-
* For UIPEthernet(ENC28J60) usage: Note that I had to disable UDP and DHCP support in uipethernet-conf.h to reduce space. (which meas you ave to choose a static IP)
20-
* For WizNET usage: Do *not* install the provided UIPEthernet-library. Remove UIPEthernet-include below and uncomment the Ethernet.h.
17+
* COMPILING ENC28J60
18+
* > Use Arduino IDE 1.5.7 (or later)
19+
* > Disable DEBUG in Sensor.h before compiling this sketch. Othervise the sketch will probably not fit in program space when downloading.
20+
* > Remove Ethernet.h include below and inlcude UIPEthernet.h
21+
* COMPILING WizNET (W5100)
22+
* > Remove UIPEthernet include below and include Ethernet.h.
2123
*
24+
* Note that I had to disable UDP and DHCP support in uipethernet-conf.h to reduce space. (which meas you ave to choose a static IP for that module)
25+
2226
* VERA CONFIGURATION:
2327
* Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin.
2428
* E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003
@@ -50,10 +54,10 @@
5054
#include <stdarg.h>
5155

5256
// Use this if you have attached a Ethernet ENC28J60 shields
53-
//#include <UIPEthernet.h>
57+
#include <UIPEthernet.h>
5458

5559
// Use this fo WizNET module and Arduino Ethernet Shield
56-
#include <Ethernet.h>
60+
//#include <Ethernet.h>
5761

5862

5963
#define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
@@ -66,7 +70,7 @@
6670
#define RADIO_TX_LED_PIN 9 // the PCB, on board LED
6771

6872
#define IP_PORT 5003 // The port you want to open
69-
IPAddress myIp (192, 168, 178, 66); // Configure your static ip-address here
73+
IPAddress myIp (192, 168, 178, 66); // Configure your static ip-address here COMPILE ERROR HERE? Use Arduino IDE 1.5.7 or later!
7074

7175
// The MAC address can be anything you want but should be unique on your network.
7276
// Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.

libraries/UIPEthernet/README

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is UIPEthernet version 1.01
1+
This is UIPEthernet version 1.07
22

33
An plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS.
44
Just include 'UIPEthernet.h' instead of 'Ethernet.h' and use all your code written for the stock Arduino Ethernet lib!
@@ -26,7 +26,9 @@ On a Mac, you will want to create a folder named "libraries" in in the "Document
2626
$ cd ~/Documents/Arduino/libraries
2727
$ git clone https://github.com/ntruchsess/arduino_uip UIPEthernet
2828

29-
Or you download the zipped version of the library from https://github.com/ntruchsess/arduino_uip/archive/master.zip, create a directory [path to Arduino distribution]\libraries\UIPEthernet and put the contents of the zip-file there.
29+
Or you download the zipped version of the library from https://github.com/ntruchsess/arduino_uip/releases, and copy the contained directory UIPEthernet to [path to Arduino distribution]\libraries\UIPEthernet.
30+
31+
If you are running Arduino-IDE 1.5.x use release-version 1.57 or checkout branch 'Arduino_1.5.5'
3032

3133
Additional information can be found on the Arduino website: http://www.arduino.cc/en/Hacking/Libraries
3234

0 commit comments

Comments
 (0)