Skip to content

Commit

Permalink
tr
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 7, 2025
1 parent 339535c commit baac963
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/driver/drv_pwmToggler.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,20 @@ static float g_current[MAX_ONOFF_SLOTS];
int parsePowerArgument(const char *s);

void publish_enableState(int index) {
#if ENABLE_MQTT
char topic[32];
snprintf(topic, sizeof(topic), "toggler_enable%i", index);

MQTT_PublishMain_StringInt(topic, g_enabled[index], 0);
#endif
}
void publish_value(int index) {
#if ENABLE_MQTT
char topic[32];
snprintf(topic, sizeof(topic), "toggler_set%i", index);

MQTT_PublishMain_StringInt(topic, g_values[index], 0);
#endif
}
void setTargetChannel(int index) {

Expand Down

0 comments on commit baac963

Please sign in to comment.