File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 8
8
// pick ONE of these - other board layouts can be easily added this way
9
9
#define MYSENSORS_SENSOR
10
10
//#define MYSENSORS_SERIAL_GATEWAY
11
- //#define MYSENSORS_ETHERNET_MQTT_GATEWAY
11
+ //#define MYSENSORS_ETHERNET_GATEWAY
12
+ //#define MYSENSORS_MQTT_GATEWAY
12
13
13
14
// Choose radio type by enabling one of the following
14
15
#define MYSENSORS_RF_NRF24
Original file line number Diff line number Diff line change 21
21
#define RF24_PA_LEVEL RF24_PA_LOW
22
22
#endif
23
23
24
- #ifdef MYSENSORS_ETHERNET_MQTT_GATEWAY
24
+ #if defined(MYSENSORS_ETHERNET_GATEWAY) || defined(MYSENSORS_MQTT_GATEWAY)
25
25
#define RF24_CE_PIN 5
26
26
#define RF24_CS_PIN 6
27
27
#define RF24_PA_LEVEL RF24_PA_LOW
Original file line number Diff line number Diff line change 48
48
#include < PinChangeInt.h>
49
49
#include " GatewayUtil.h"
50
50
51
- #ifndef MYSENSORS_ETHERNET_MQTT_GATEWAY
52
- #error Please switch to MYSENSORS_ETHERNET_MQTT_GATEWAY in MyConfig.h
51
+ #ifndef MYSENSORS_ETHERNET_GATEWAY
52
+ #error Please switch to MYSENSORS_ETHERNET_GATEWAY in MyConfig.h
53
53
#endif
54
54
55
55
// Use this if you have attached a Ethernet ENC28J60 shields
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ http://forum.mysensors.org/topic/303/mqtt-broker-gateway
62
62
#include < Ethernet.h>
63
63
#include " MyMQTT.h"
64
64
65
- #ifndef MYSENSORS_ETHERNET_MQTT_GATEWAY
66
- #error Please switch to MYSENSORS_ETHERNET_MQTT_GATEWAY in MyConfig.h
65
+ #ifndef MYSENSORS_MQTT_GATEWAY
66
+ #error Please switch to MYSENSORS_MQTT_GATEWAY in MyConfig.h
67
67
#endif
68
68
69
69
#define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
You can’t perform that action at this time.
0 commit comments