| | |
| | | import com.dji.sample.manage.model.dto.DeviceDTO; |
| | | import com.dji.sample.manage.model.dto.DeviceFirmwareUpgradeDTO; |
| | | import com.dji.sample.manage.model.dto.TopologyDeviceDTO; |
| | | import com.dji.sample.manage.model.enums.DeviceSetPropertyEnum; |
| | | import com.dji.sample.manage.model.param.DeviceQueryParam; |
| | | import com.dji.sample.manage.model.receiver.FirmwareVersionReceiver; |
| | | import com.dji.sample.manage.model.receiver.StatusGatewayReceiver; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | | import org.springframework.messaging.Message; |
| | | import org.springframework.messaging.MessageHeaders; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * The device goes offline. |
| | | * @param gatewaySn |
| | | * @param gateway |
| | | * @return Whether the offline is successful. |
| | | */ |
| | | Boolean deviceOffline(String gatewaySn); |
| | | Boolean deviceOffline(StatusGatewayReceiver gateway); |
| | | |
| | | /** |
| | | * The aircraft goes offline. |
| | |
| | | |
| | | /** |
| | | * Handle messages from the osd topic. |
| | | * @param topic osd |
| | | * @param payload |
| | | * @param message osd |
| | | */ |
| | | void handleOSD(String topic, byte[] payload); |
| | | void handleOSD(Message<?> message); |
| | | |
| | | /** |
| | | * Update the device information. |
| | |
| | | * @return |
| | | */ |
| | | ResponseResult createDeviceOtaJob(String workspaceId, List<DeviceFirmwareUpgradeDTO> upgradeDTOS); |
| | | |
| | | /** |
| | | * Set the property parameters of the drone. |
| | | * @param workspaceId |
| | | * @param dockSn |
| | | * @param propertyEnum |
| | | * @param param |
| | | */ |
| | | void devicePropertySet(String workspaceId, String dockSn, DeviceSetPropertyEnum propertyEnum, JsonNode param); |
| | | |
| | | /** |
| | | * Set one property parameters of the drone. |
| | | * @param topic |
| | | * @param propertyEnum |
| | | * @param value |
| | | */ |
| | | void deviceOnePropertySet(String topic, DeviceSetPropertyEnum propertyEnum, Map.Entry<String, Object> value); |
| | | |
| | | /** |
| | | * Determine if the device is online. |
| | | * @param sn |
| | | * @return |
| | | */ |
| | | Boolean checkDeviceOnline(String sn); |
| | | } |