#地图相关推送修改
This commit is contained in:
@@ -8,7 +8,7 @@ public class DeviceMapPushDTO {
|
||||
private double lat;
|
||||
private double lng;
|
||||
private double y; //yaw
|
||||
private double f; //fix_status
|
||||
private String f; //fix_status
|
||||
private double a; //altitude
|
||||
private String s;//status 运行状态
|
||||
private Long t; //taskId 任务id
|
||||
|
||||
@@ -11,12 +11,12 @@ import lombok.Getter;
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum DeviceStatusEnum {
|
||||
|
||||
offline("0", "离线"),
|
||||
idle("1", "空闲中"),
|
||||
working("2", "工作中"),
|
||||
charging("3", "充电中"),
|
||||
error("4", "故障");
|
||||
|
||||
working("1", "工作中"),
|
||||
idle("2", "空闲中"),
|
||||
offline("3", "离线"),
|
||||
charging("4", "充电中"),
|
||||
error("5", "故障");
|
||||
|
||||
String code;
|
||||
String message;
|
||||
|
||||
@@ -229,7 +229,7 @@ public class HostMessageHandler implements CustomMqttMessageHandler {
|
||||
dto.setId(deviceId);
|
||||
// dto.setB();
|
||||
// dto.setHa();
|
||||
dto.setF(Double.parseDouble(fix_status.getValue()));
|
||||
dto.setF(fix_status.getValue());
|
||||
dto.setS(status.getValue());
|
||||
dto.setLat(Double.parseDouble(lat.getValue()));
|
||||
dto.setLng(Double.parseDouble(lng.getValue()));
|
||||
|
||||
Reference in New Issue
Block a user