177 } |
178 } |
178 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DLOG")) { |
179 if (strstr(message->topic, (char *)"co2meters") && strstr(message->topic, (char *)"DLOG")) { |
179 co2meter_log(message->topic, (char *)message->payload); |
180 co2meter_log(message->topic, (char *)message->payload); |
180 return; |
181 return; |
181 } |
182 } |
|
183 if (strstr(message->topic, (char *)"ispindel")) { |
|
184 ispindel_mqtt(message->topic, (char *)message->payload); |
|
185 } |
182 syslog(LOG_NOTICE, "MQTT: message callback %s :: %d", message->topic, message->payloadlen); |
186 syslog(LOG_NOTICE, "MQTT: message callback %s :: %d", message->topic, message->payloadlen); |
183 } else { |
187 } else { |
184 if (strstr(message->topic, (char *)"NBIRTH")) { |
188 if (strstr(message->topic, (char *)"NBIRTH")) { |
185 // Ignore ?? |
189 // Ignore ?? |
186 fprintf(stdout, "MQTT: %s NULL\n", message->topic); |
190 fprintf(stdout, "MQTT: %s NULL\n", message->topic); |