You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
731 B
25 lines
731 B
package com.dji.sample.manage.handler; |
|
|
|
import com.dji.sample.component.mqtt.model.TopicStateReceiver; |
|
import com.fasterxml.jackson.core.JsonProcessingException; |
|
import com.fasterxml.jackson.databind.JsonNode; |
|
import org.springframework.stereotype.Service; |
|
|
|
/** |
|
* @author sean |
|
* @version 0.3 |
|
* @date 2022/3/21 |
|
*/ |
|
@Service |
|
public class StateDefaultHandler extends AbstractStateTopicHandler { |
|
|
|
protected StateDefaultHandler() { |
|
super(null); |
|
} |
|
|
|
@Override |
|
public TopicStateReceiver handleState(JsonNode dataNode, TopicStateReceiver stateReceiver, String sn) throws JsonProcessingException { |
|
// If no suitable handler is found for the data, it is not processed. |
|
return stateReceiver; |
|
} |
|
}
|
|
|