bmsd/mqtt.c

changeset 590
a43b8b85d8b3
parent 578
e75ce5bbda73
child 679
48f8f3fce7c0
equal deleted inserted replaced
589:b6a73022abe7 590:a43b8b85d8b3
173 } 173 }
174 if (strstr(message->topic, (char *)"fermenters") && strstr(message->topic, (char *)"DLOG")) { 174 if (strstr(message->topic, (char *)"fermenters") && strstr(message->topic, (char *)"DLOG")) {
175 fermenter_log(message->topic, (char *)message->payload); 175 fermenter_log(message->topic, (char *)message->payload);
176 return; 176 return;
177 } 177 }
178 if (strstr(message->topic, (char *)"fermenters") && strstr(message->topic, (char *)"DCMD")) {
179 return; // just ignore our own commands.
180 }
178 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DBIRTH")) { 181 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DBIRTH")) {
179 co2meter_birth_data(message->topic, (char *)message->payload); 182 co2meter_birth_data(message->topic, (char *)message->payload);
180 return; 183 return;
181 } 184 }
182 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DLOG")) { 185 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DLOG")) {

mercurial