Skip to content

Commit

Permalink
feat: add protocol into topic (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugokernel authored Oct 13, 2020
1 parent cc201c4 commit 43e5629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,9 @@ void pub(char* topicori, JsonObject& data) {
#ifdef valueAsASubject
# ifdef ZgatewayPilight
String value = data["value"];
String protocol = data["protocol"];
if (value != 0) {
topic = topic + "/" + value;
topic = topic + "/" + protocol + "/" + value;
}
# else
SIGNAL_SIZE_UL_ULL value = data["value"];
Expand Down

0 comments on commit 43e5629

Please sign in to comment.