Dump mode functionnality adding (#255)

Add a new definition of IRrecv with special parameters so as to enable to catch big IR codes
This commit is contained in:
Florian authored and GitHub committed 2018-08-22 21:23:48 +02:00
1 parent 93c2c6eb56
commit 19c89d9dc8
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -31,7 +31,11 @@
#include <IRremoteESP8266.h>
#include <IRsend.h> // Needed if you want to send IR commands.
#include <IRrecv.h> // Needed if you want to receive IR commands.
IRrecv irrecv(IR_RECEIVER_PIN);
#ifdef DumpMode // in dump mode we increase the size of the buffer to catch big codes
IRrecv irrecv(IR_RECEIVER_PIN, 1024, 15U, true);
#else
IRrecv irrecv(IR_RECEIVER_PIN);
#endif
IRsend irsend(IR_EMITTER_PIN);
#else
#include <IRremote.h>
+1
View File
@@ -39,6 +39,7 @@
#define repeatIRwMQTT false // do we repeat a received signal by using mqtt
#define RawDirectForward false // direct repeat of IR signal with raw data
#define RawFrequency 38 // raw frequency sending
//#define DumpMode true // uncomment so as to see big dumps of IR codes, put also #define MQTT_MAX_PACKET_SIZE 1024 into the library pubsubclient.h by instead of #define MQTT_MAX_PACKET_SIZE 128
#define pubIRunknownPrtcl false // key to avoid mqtt publication of unknown IR protocol (set to true if you want to publish unknown protocol)
#define PanasonicAddress 0x4004 // Panasonic address (Pre data)