Compare commits
No commits in common. "93468a074dbb7a0cb451cbe953135f17a30793b2" and "d489126f1423e6b7265293cc954c3dd75ae03c34" have entirely different histories.
93468a074d
...
d489126f14
|
@ -96,11 +96,6 @@ char AC_ROOM_TEMPERATURE_TOPIC[75];
|
||||||
char AC_HUMIDITY_TOPIC[75];
|
char AC_HUMIDITY_TOPIC[75];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_IR_MODULE
|
|
||||||
uint16_t ir_buffer[IR_RAW_BUFFER_LENGTH];
|
|
||||||
uint16_t ir_buffer_length = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_ANALOG_MODULE
|
#ifdef ENABLE_ANALOG_MODULE
|
||||||
#define DAC_COUNT 4
|
#define DAC_COUNT 4
|
||||||
#define ADC_COUNT 8
|
#define ADC_COUNT 8
|
||||||
|
@ -721,18 +716,6 @@ void mqtt_callback(char *topic, byte *payload, unsigned int length)
|
||||||
{
|
{
|
||||||
dac_set_value_callback(topic_trim, topic_length, payload_nt, length);
|
dac_set_value_callback(topic_trim, topic_length, payload_nt, length);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_IR_MODULE
|
|
||||||
else if (!strcmp(topic_trim, "/ir/send"))
|
|
||||||
{
|
|
||||||
const char* delimiter = ",";
|
|
||||||
char* token = strtok(const_cast<char*>(payload_nt), delimiter);
|
|
||||||
while (token != nullptr && ir_buffer_length < IR_RAW_BUFFER_LENGTH) {
|
|
||||||
ir_buffer[ir_buffer_length++] = atoi(token);
|
|
||||||
token = strtok(nullptr, delimiter);
|
|
||||||
}
|
|
||||||
IrSender.sendRaw(ir_buffer,ir_buffer_length ,NEC_KHZ);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
else if (!strcmp(topic, STATE_REQUEST_TOPIC))
|
else if (!strcmp(topic, STATE_REQUEST_TOPIC))
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#define IR_RECIEVE_PIN 35
|
#define IR_RECIEVE_PIN 35
|
||||||
#define IR_SEND_PIN 17
|
#define IR_SEND_PIN 17
|
||||||
#define MARK_EXCESS_MICROS 20
|
#define MARK_EXCESS_MICROS 20
|
||||||
#define IR_RAW_BUFFER_LENGTH 750
|
#define RAW_BUFFER_LENGTH 750
|
||||||
#define AC_MAX_TEMPERATURE 30
|
#define AC_MAX_TEMPERATURE 30
|
||||||
#define AC_MIN_TEMPERATURE 15
|
#define AC_MIN_TEMPERATURE 15
|
||||||
#define DHT22_PIN 32
|
#define DHT22_PIN 32
|
||||||
|
|
Loading…
Reference in New Issue