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")) { |