Skip to content

Commit

Permalink
Merge pull request crankyoldgit#1 from Curious-r/patch-1
Browse files Browse the repository at this point in the history
Modify to fit AI-Win A1.
  • Loading branch information
Curious-r authored Aug 29, 2021
2 parents 3abd371 + 514543a commit 257cc09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/IRMQTTServer/IRMQTTServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const uint8_t kNrOfIrTxGpios = 1;
// Default GPIO the IR LED is connected to/controlled by. GPIO 4 = D2.
// For an ESP-01 we suggest you use RX/GPIO3/Pin 7. i.e. kDefaultIrLed = 3
// Note: A value of -1 means unused.
const int8_t kDefaultIrLed = 4; // <=- CHANGE_ME (optional)
const int8_t kDefaultIrLed = 13; // <=- CHANGE_ME (optional)

// **DANGER** Optional flag to invert the output. (default = false)
// `false`: The LED is illuminated when the GPIO is HIGH.
Expand All @@ -75,6 +75,9 @@ const bool kInvertTxOutput = false;
// Note: GPIO 16 won't work on the ESP8266 as it does not have interrupts.
const int8_t kDefaultIrRx = 14; // <=- CHANGE_ME (optional)

// Define IR transmitting indicator gpio.
#define INDICATOR 16

// Enable/disable receiving/decoding IR messages entirely.
// Note: IR_RX costs about 40k+ of program memory.
#define IR_RX true
Expand Down Expand Up @@ -119,7 +122,7 @@ const IPAddress kSubnetMask = IPAddress(255, 255, 255, 0);
#ifndef MQTT_BUFFER_SIZE
// A value of 768 handles most cases easily. Use 1024 or more when using
// `REPORT_RAW_UNKNOWNS` is recommended.
#define MQTT_BUFFER_SIZE 768 // Default MQTT packet buffer size.
#define MQTT_BUFFER_SIZE 1024 // Default MQTT packet buffer size.
#endif // MQTT_BUFFER_SIZE
const uint16_t kMqttBufferSize = MQTT_BUFFER_SIZE; // Packet Buffer size.
const uint32_t kMqttReconnectTime = 5000; // Delay(ms) between reconnect tries.
Expand All @@ -133,7 +136,7 @@ const uint32_t kMqttReconnectTime = 5000; // Delay(ms) between reconnect tries.
#define MQTT_CLIMATE_CMND "cmnd" // Sub-topic for the climate command topics.
#define MQTT_CLIMATE_STAT "stat" // Sub-topic for the climate stat topics.
// Enable sending/receiving climate via JSON. `true` cost ~5k of program space.
#define MQTT_CLIMATE_JSON false
#define MQTT_CLIMATE_JSON true

// Use Home Assistant-style operation modes.
// TL;DR: Power and Mode are linked together. One changes the other.
Expand Down

0 comments on commit 257cc09

Please sign in to comment.