This commit is contained in:
parent
035e558ef7
commit
9999fd922b
|
|
@ -135,11 +135,11 @@ public class DjiMqttClientService {
|
|||
String topic = (String) message.getHeaders().get("mqtt_receivedTopic");
|
||||
String payload = (String) message.getPayload();
|
||||
|
||||
if (topic != null && payload != null) {
|
||||
if (topic != null) {
|
||||
messageHandler.handleMessage(topic, payload);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("MQTT客户端[{}]处理消息失败: ", config.getClientId(), e.getMessage(), e);
|
||||
log.error("MQTT客户端[{}]处理消息失败: {}", config.getClientId(), e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue