1 parent
2490ba75ab
commit
807c668489
11 files changed
+15
-15
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ extern void ADCtoMQTT();
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MinTimeInSecBetweenPublishingADC
|
#ifndef MinTimeInSecBetweenPublishingADC
|
||||||
# define MinTimeInSecBetweenPublishingADC 0 // pub at least at defined interval - usefull to publish values in case they do not change so much ; 0 = disabled
|
# define MinTimeInSecBetweenPublishingADC 0 // pub at least at defined interval - useful to publish values in case they do not change so much ; 0 = disabled
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-------------------PIN DEFINITIONS----------------------*/
|
/*-------------------PIN DEFINITIONS----------------------*/
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ int BME280_PIN_SCL = SCL; // PIN SCL
|
|||||||
// Temperature correction for BME280/BMP280 devices
|
// Temperature correction for BME280/BMP280 devices
|
||||||
|
|
||||||
#ifndef BME280Correction
|
#ifndef BME280Correction
|
||||||
// BME280Correction - Correction in celcius of temperature reported by BME280/BMP280 sensor. Both Celcius and Farenheit temperatures are adjusted.
|
// BME280Correction - Correction in Celsius of temperature reported by BME280/BMP280 sensor. Both Celsius and Fahrenheit temperatures are adjusted.
|
||||||
// -------------------------
|
// -------------------------
|
||||||
// Value is a float
|
// Value is a float
|
||||||
// ie Compiler Directive '-DBME280Correction=-3.4'
|
// ie Compiler Directive '-DBME280Correction=-3.4'
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ extern void pubOneWire_HADiscovery();
|
|||||||
#define DS1820_ALWAYS true // if false only published current temperature if has changed from previous reading
|
#define DS1820_ALWAYS true // if false only published current temperature if has changed from previous reading
|
||||||
#define DS1820_INTERVAL_SEC 60UL // time between DS1820 readings (seconds)
|
#define DS1820_INTERVAL_SEC 60UL // time between DS1820 readings (seconds)
|
||||||
#define DS1820_RESOLUTION 10 // conversion times: 9 bit (93.75 ms), 10 bit (187.5 ms), 11 bit (375 ms), 12 bit (750 ms)
|
#define DS1820_RESOLUTION 10 // conversion times: 9 bit (93.75 ms), 10 bit (187.5 ms), 11 bit (375 ms), 12 bit (750 ms)
|
||||||
#define DS1820_DETAILS true // publish extented info for each sensor (resolution, address, type)
|
#define DS1820_DETAILS true // publish extended info for each sensor (resolution, address, type)
|
||||||
#define DS1820_CONV_TIME 2000UL // trigger conversion before requesting temperature readings (ms)
|
#define DS1820_CONV_TIME 2000UL // trigger conversion before requesting temperature readings (ms)
|
||||||
/*-------------------PIN DEFINITIONS----------------------*/
|
/*-------------------PIN DEFINITIONS----------------------*/
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
// How many leds in your strip?
|
// How many leds in your strip?
|
||||||
#define FASTLED_NUM_LEDS 16
|
#define FASTLED_NUM_LEDS 16
|
||||||
|
|
||||||
// Uncomment/edit one of the following lines for your leds arrangement.
|
// Uncomment/edit one of the following lines for your LEDs arrangement.
|
||||||
|
|
||||||
//#define FASTLED_TYPE TM1803
|
//#define FASTLED_TYPE TM1803
|
||||||
//#define FASTLED_TYPE TM1804
|
//#define FASTLED_TYPE TM1804
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
|
|
||||||
void fillScreen(OLEDDISPLAY_COLOR); // fillScreen display and set color
|
void fillScreen(OLEDDISPLAY_COLOR); // fillScreen display and set color
|
||||||
|
|
||||||
// This is a bit of lazy programmer simplifacation for the semapore and core detecting code. Not sure if it is truly space efficient.
|
// This is a bit of lazy programmer simplification for the semaphore and core detecting code. Not sure if it is truly space efficient.
|
||||||
|
|
||||||
inline size_t write(uint8_t x) {
|
inline size_t write(uint8_t x) {
|
||||||
return write(&x, 1);
|
return write(&x, 1);
|
||||||
|
|||||||
+1
-1
@@ -185,7 +185,7 @@ extern void MQTTtoIR(char* topicOri, JsonObject& RFdata);
|
|||||||
|
|
||||||
#ifndef IR_EMITTER_INVERTED
|
#ifndef IR_EMITTER_INVERTED
|
||||||
# if defined(ESP8266) || defined(ESP32)
|
# if defined(ESP8266) || defined(ESP32)
|
||||||
# define IR_EMITTER_INVERTED false //set to true if yuou want to reverse the LED signal for the emitter
|
# define IR_EMITTER_INVERTED false //set to true if you want to reverse the LED signal for the emitter
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ extern void MQTTtoLORA(char* topicOri, JsonObject& RFdata);
|
|||||||
#define LORA_SYNC_WORD 0x12
|
#define LORA_SYNC_WORD 0x12
|
||||||
#define DEFAULT_CRC true
|
#define DEFAULT_CRC true
|
||||||
|
|
||||||
#define repeatLORAwMQTT false // do we repeat a received signal by using mqtt with LORA gateway
|
#define repeatLORAwMQTT false // do we repeat a received signal by using MQTT with LORA gateway
|
||||||
|
|
||||||
/*-------------------PIN DEFINITIONS----------------------*/
|
/*-------------------PIN DEFINITIONS----------------------*/
|
||||||
//TTGO LORA BOARD ESP32 PIN DEFINITION
|
//TTGO LORA BOARD ESP32 PIN DEFINITION
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ extern void MQTTtoONOFF(char* topicOri, JsonObject& RFdata);
|
|||||||
#define ONKey "setON"
|
#define ONKey "setON"
|
||||||
#define OFFKey "setOFF"
|
#define OFFKey "setOFF"
|
||||||
#ifndef ACTUATOR_ON
|
#ifndef ACTUATOR_ON
|
||||||
# define ACTUATOR_ON LOW // LOW or HIGH, set to the output level of the gpio pin to turn the actuator on.
|
# define ACTUATOR_ON LOW // LOW or HIGH, set to the output level of the GPIO pin to turn the actuator on.
|
||||||
#endif
|
#endif
|
||||||
//# define ACTUATOR_ONOFF_DEFAULT !ACTUATOR_ON // ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset.
|
//# define ACTUATOR_ONOFF_DEFAULT !ACTUATOR_ON // ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset.
|
||||||
#ifndef ACTUATOR_BUTTON_TRIGGER_LEVEL
|
#ifndef ACTUATOR_BUTTON_TRIGGER_LEVEL
|
||||||
|
|||||||
+1
-1
@@ -74,7 +74,7 @@ extern int getRTLMessageCount();
|
|||||||
#define subjectGTWRFtoMQTT "/433toMQTT"
|
#define subjectGTWRFtoMQTT "/433toMQTT"
|
||||||
#define RFprotocolKey "433_" // protocol will be defined if a subject contains RFprotocolKey followed by a value of 1 digit
|
#define RFprotocolKey "433_" // protocol will be defined if a subject contains RFprotocolKey followed by a value of 1 digit
|
||||||
#define RFbitsKey "RFBITS_" // bits will be defined if a subject contains RFbitsKey followed by a value of 2 digits
|
#define RFbitsKey "RFBITS_" // bits will be defined if a subject contains RFbitsKey followed by a value of 2 digits
|
||||||
#define repeatRFwMQTT false // do we repeat a received signal by using mqtt with RF gateway
|
#define repeatRFwMQTT false // do we repeat a received signal by using MQTT with RF gateway
|
||||||
#define RFpulselengthKey "PLSL_" // pulselength will be defined if a subject contains RFprotocolKey followed by a value of 3 digits
|
#define RFpulselengthKey "PLSL_" // pulselength will be defined if a subject contains RFprotocolKey followed by a value of 3 digits
|
||||||
// subject monitored to listen traffic processed by other gateways to store data and avoid ntuple
|
// subject monitored to listen traffic processed by other gateways to store data and avoid ntuple
|
||||||
#define subjectMultiGTWRF "+/+/433toMQTT"
|
#define subjectMultiGTWRF "+/+/433toMQTT"
|
||||||
|
|||||||
+3
-3
@@ -42,15 +42,15 @@ extern void MQTTtoSRFB(char* topicOri, JsonObject& RFdata);
|
|||||||
#define SRFBminipulselengthKey "Tlow_"
|
#define SRFBminipulselengthKey "Tlow_"
|
||||||
#define SRFBsyncKey "Tsyn_"
|
#define SRFBsyncKey "Tsyn_"
|
||||||
|
|
||||||
#define repeatSRFBwMQTT false // do we repeat a received signal by using mqtt with Sonoff RF Bridge
|
#define repeatSRFBwMQTT false // do we repeat a received signal by using MQTT with Sonoff RF Bridge
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// RFBRIDGE
|
// RFBRIDGE
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define RF_SEND_TIMES 4 // How many times to send the message
|
#define RF_SEND_TIMES 4 // How many times to send the message
|
||||||
#define RF_SEND_DELAY 500 // Interval between sendings in ms
|
#define RF_SEND_DELAY 500 // Interval between sending in ms
|
||||||
#define RF_RECEIVE_DELAY 500 // Interval between recieving in ms (avoid debouncing)
|
#define RF_RECEIVE_DELAY 500 // Interval between receiving in ms (avoid debouncing)
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// DEFINITIONS
|
// DEFINITIONS
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ extern void createDiscoveryFromList(const char* mac,
|
|||||||
* @param sensor_type the Type
|
* @param sensor_type the Type
|
||||||
* @param st_topic set state topic,
|
* @param st_topic set state topic,
|
||||||
* @param s_name set name,
|
* @param s_name set name,
|
||||||
* @param unique_id set niqueId
|
* @param unique_id set uniqueId
|
||||||
* @param availability_topic set availability_topic,
|
* @param availability_topic set availability_topic,
|
||||||
* @param device_class set device_class,
|
* @param device_class set device_class,
|
||||||
* @param value_template set value_template,
|
* @param value_template set value_template,
|
||||||
@@ -69,8 +69,8 @@ extern void createDiscoveryFromList(const char* mac,
|
|||||||
* @param payload_off set payload_off,
|
* @param payload_off set payload_off,
|
||||||
* @param unit_of_meas set unit_of_meas,
|
* @param unit_of_meas set unit_of_meas,
|
||||||
* @param off_delay set off_delay
|
* @param off_delay set off_delay
|
||||||
* @param payload_available set payload_avalaible,
|
* @param payload_available set payload_available,
|
||||||
* @param payload_not_avalaible set payload_not_avalaible
|
* @param payload_not_available set payload_not_available
|
||||||
* @param gateway_entity set is a gateway entity,
|
* @param gateway_entity set is a gateway entity,
|
||||||
* @param cmd_topic set command topic
|
* @param cmd_topic set command topic
|
||||||
* @param device_name set device name,
|
* @param device_name set device name,
|
||||||
|
|||||||
Reference in new issue
Block a user