Merge pull request #70 from mapnull/dev-feature-mqtt_define
add MYSENSORS_MQTT_GATEWAY definition
This commit is contained in:
@@ -8,7 +8,8 @@
|
|||||||
// pick ONE of these - other board layouts can be easily added this way
|
// pick ONE of these - other board layouts can be easily added this way
|
||||||
#define MYSENSORS_SENSOR
|
#define MYSENSORS_SENSOR
|
||||||
//#define MYSENSORS_SERIAL_GATEWAY
|
//#define MYSENSORS_SERIAL_GATEWAY
|
||||||
//#define MYSENSORS_ETHERNET_MQTT_GATEWAY
|
//#define MYSENSORS_ETHERNET_GATEWAY
|
||||||
|
//#define MYSENSORS_MQTT_GATEWAY
|
||||||
|
|
||||||
// Choose radio type by enabling one of the following
|
// Choose radio type by enabling one of the following
|
||||||
#define MYSENSORS_RF_NRF24
|
#define MYSENSORS_RF_NRF24
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#define RF24_PA_LEVEL RF24_PA_LOW
|
#define RF24_PA_LEVEL RF24_PA_LOW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MYSENSORS_ETHERNET_MQTT_GATEWAY
|
#if defined(MYSENSORS_ETHERNET_GATEWAY) || defined(MYSENSORS_MQTT_GATEWAY)
|
||||||
#define RF24_CE_PIN 5
|
#define RF24_CE_PIN 5
|
||||||
#define RF24_CS_PIN 6
|
#define RF24_CS_PIN 6
|
||||||
#define RF24_PA_LEVEL RF24_PA_LOW
|
#define RF24_PA_LEVEL RF24_PA_LOW
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
#include <PinChangeInt.h>
|
#include <PinChangeInt.h>
|
||||||
#include "GatewayUtil.h"
|
#include "GatewayUtil.h"
|
||||||
|
|
||||||
#ifndef MYSENSORS_ETHERNET_MQTT_GATEWAY
|
#ifndef MYSENSORS_ETHERNET_GATEWAY
|
||||||
#error Please switch to MYSENSORS_ETHERNET_MQTT_GATEWAY in MyConfig.h
|
#error Please switch to MYSENSORS_ETHERNET_GATEWAY in MyConfig.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Use this if you have attached a Ethernet ENC28J60 shields
|
// Use this if you have attached a Ethernet ENC28J60 shields
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ http://forum.mysensors.org/topic/303/mqtt-broker-gateway
|
|||||||
#include <Ethernet.h>
|
#include <Ethernet.h>
|
||||||
#include "MyMQTT.h"
|
#include "MyMQTT.h"
|
||||||
|
|
||||||
#ifndef MYSENSORS_ETHERNET_MQTT_GATEWAY
|
#ifndef MYSENSORS_MQTT_GATEWAY
|
||||||
#error Please switch to MYSENSORS_ETHERNET_MQTT_GATEWAY in MyConfig.h
|
#error Please switch to MYSENSORS_MQTT_GATEWAY in MyConfig.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
|
#define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user