Skip to content

Commit 82dda0f

Browse files
committed
Merge branch 'master' into development
2 parents 86b6411 + 26129b0 commit 82dda0f

Some content is hidden

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

54 files changed

+597
-3806
lines changed

libraries/MySensors/MyMessage.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef enum {
3030
C_REQ = 2,
3131
C_INTERNAL = 3,
3232
C_STREAM = 4 // For Firmware and other larger chunks of data that need to be divided into pieces.
33-
} command;
33+
} mysensor_command;
3434

3535
// Type of sensor data (for set/req/ack messages)
3636
typedef enum {
@@ -40,33 +40,33 @@ typedef enum {
4040
V_HEATER, V_HEATER_SW, V_LIGHT_LEVEL, V_VAR1, V_VAR2, V_VAR3, V_VAR4, V_VAR5,
4141
V_UP, V_DOWN, V_STOP, V_IR_SEND, V_IR_RECEIVE, V_FLOW, V_VOLUME, V_LOCK_STATUS,
4242
V_DUST_LEVEL, V_VOLTAGE, V_CURRENT
43-
} data;
43+
} mysensor_data;
4444

4545
// Type of internal messages (for internal messages)
4646
typedef enum {
4747
I_BATTERY_LEVEL, I_TIME, I_VERSION, I_ID_REQUEST, I_ID_RESPONSE,
4848
I_INCLUSION_MODE, I_CONFIG, I_FIND_PARENT, I_FIND_PARENT_RESPONSE,
4949
I_LOG_MESSAGE, I_CHILDREN, I_SKETCH_NAME, I_SKETCH_VERSION,
5050
I_REBOOT, I_GATEWAY_READY
51-
} internal;
51+
} mysensor_internal;
5252

5353
// Type of sensor (for presentation message)
5454
typedef enum {
5555
S_DOOR, S_MOTION, S_SMOKE, S_LIGHT, S_DIMMER, S_COVER, S_TEMP, S_HUM, S_BARO, S_WIND,
5656
S_RAIN, S_UV, S_WEIGHT, S_POWER, S_HEATER, S_DISTANCE, S_LIGHT_LEVEL, S_ARDUINO_NODE,
5757
S_ARDUINO_REPEATER_NODE, S_LOCK, S_IR, S_WATER, S_AIR_QUALITY, S_CUSTOM, S_DUST,
5858
S_SCENE_CONTROLLER
59-
} sensor;
59+
} mysensor_sensor;
6060

6161
// Type of data stream (for streamed message)
6262
typedef enum {
6363
ST_FIRMWARE_CONFIG_REQUEST, ST_FIRMWARE_CONFIG_RESPONSE, ST_FIRMWARE_REQUEST, ST_FIRMWARE_RESPONSE,
6464
ST_SOUND, ST_IMAGE
65-
} stream;
65+
} mysensor_stream;
6666

6767
typedef enum {
6868
P_STRING, P_BYTE, P_INT16, P_UINT16, P_LONG32, P_ULONG32, P_CUSTOM, P_FLOAT32
69-
} payload;
69+
} mysensor_payload;
7070

7171

7272

libraries/MySensors/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void loop()
8383
} else if (sendTime && !pcReceived) {
8484
// No count received. Try requesting it again
8585
gw.request(CHILD_ID, V_VAR1);
86+
lastSend=now;
8687
}
8788

8889
if (SLEEP_MODE) {

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
@@ -54,10 +58,10 @@
5458

5559

5660
// Use this if you have attached a Ethernet ENC28J60 shields
57-
//#include <UIPEthernet.h>
61+
#include <UIPEthernet.h>
5862

5963
// Use this fo WizNET module and Arduino Ethernet Shield
60-
#include <Ethernet.h>
64+
//#include <Ethernet.h>
6165

6266

6367
#define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
@@ -75,7 +79,7 @@ MySensor gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN);
7579

7680

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

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

libraries/MySensors/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ void loop()
9797
}
9898
}
9999
lastSend = currentTime;
100-
} else if (sendTime) {
100+
} else if (sendTime && !pcReceived) {
101101
// No count received. Try requesting it again
102102
gw.request(CHILD_ID, V_VAR1);
103+
lastSend=currentTime;
103104
}
104105

105106
if (SLEEP_MODE) {

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)