Compare commits
No commits in common. "cb6556b3333ec3af5f00d677cc565122d9a4f16e" and "98fc132e3f9732254cda4a68fb940377d89577ec" have entirely different histories.
cb6556b333
...
98fc132e3f
|
@ -4,5 +4,3 @@
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
.vscode/ipch
|
.vscode/ipch
|
||||||
.vs/
|
.vs/
|
||||||
.vscode/
|
|
||||||
.vscode/settings.json
|
|
|
@ -453,6 +453,7 @@ void ota_begin()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void io_begin()
|
void io_begin()
|
||||||
{
|
{
|
||||||
Serial.println("Initializing I/O . . .");
|
Serial.println("Initializing I/O . . .");
|
||||||
|
@ -590,16 +591,12 @@ void mqtt_callback(char *topic, byte *payload, unsigned int length)
|
||||||
else if ((!strncmp(topic_trim, "/pwm/", 5)) && !strncmp(topic_trim + 7, "/set/value", 10))
|
else if ((!strncmp(topic_trim, "/pwm/", 5)) && !strncmp(topic_trim + 7, "/set/value", 10))
|
||||||
{
|
{
|
||||||
pwm_value_callback(topic_trim, topic_length, payload_nt, length);
|
pwm_value_callback(topic_trim, topic_length, payload_nt, length);
|
||||||
}
|
} else if(!strcmp(topic,STATE_REQUEST_TOPIC)) {
|
||||||
else if (!strcmp(topic, STATE_REQUEST_TOPIC))
|
|
||||||
{
|
|
||||||
state_request_callback();
|
state_request_callback();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_CLIMATE_MODULE
|
|
||||||
ac_state_callback(topic, topic_length, payload_nt, length);
|
ac_state_callback(topic, topic_length, payload_nt, length);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
user_mqtt_callback(topic, topic_length, payload_nt, length);
|
user_mqtt_callback(topic, topic_length, payload_nt, length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue