|
14 | 14 | *
|
15 | 15 | * The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program.
|
16 | 16 | *
|
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. |
21 | 23 | *
|
| 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 | +
|
22 | 26 | * VERA CONFIGURATION:
|
23 | 27 | * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin.
|
24 | 28 | * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003
|
|
50 | 54 | #include <stdarg.h>
|
51 | 55 |
|
52 | 56 | // Use this if you have attached a Ethernet ENC28J60 shields
|
53 |
| -//#include <UIPEthernet.h> |
| 57 | +#include <UIPEthernet.h> |
54 | 58 |
|
55 | 59 | // Use this fo WizNET module and Arduino Ethernet Shield
|
56 |
| -#include <Ethernet.h> |
| 60 | +//#include <Ethernet.h> |
57 | 61 |
|
58 | 62 |
|
59 | 63 | #define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
|
|
66 | 70 | #define RADIO_TX_LED_PIN 9 // the PCB, on board LED
|
67 | 71 |
|
68 | 72 | #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! |
70 | 74 |
|
71 | 75 | // The MAC address can be anything you want but should be unique on your network.
|
72 | 76 | // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
|
|
0 commit comments