Skip to content

Commit

Permalink
Rework naming to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
BenniG82 authored and steff393 committed Jun 24, 2023
1 parent 0319412 commit 2892b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ void mqtt_publish(uint8_t i) {
snprintf_P(value, sizeof(value), PSTR("%d"), WiFi.channel());
client.publish(topic, value, retain);

snprintf_P(topic, sizeof(topic), PSTR("%s/plug_state"), header);
snprintf_P(topic, sizeof(topic), PSTR("%s/plugState"), header);
snprintf_P(value, sizeof(value), PSTR("%s"), ps?"true":"false");
client.publish(topic, value, retain);

snprintf_P(topic, sizeof(topic), PSTR("%s/charge_state"), header);
snprintf_P(topic, sizeof(topic), PSTR("%s/chargeState"), header);
snprintf_P(value, sizeof(value), PSTR("%s"), cs?"true":"false");
client.publish(topic, value, retain);

Expand Down

0 comments on commit 2892b09

Please sign in to comment.