feat():开启关闭ESC
parent
a0994c3e7a
commit
f4faf4d828
|
@ -98,6 +98,31 @@
|
||||||
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>ecs20140526</artifactId>
|
||||||
|
<version>5.1.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>tea-openapi</artifactId>
|
||||||
|
<version>0.3.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>tea-console</artifactId>
|
||||||
|
<version>0.0.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>tea-util</artifactId>
|
||||||
|
<version>0.2.21</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
package com.muyu.vehicle.service.impl;
|
|
||||||
|
|
||||||
import com.muyu.common.core.utils.uuid.UUID;
|
|
||||||
import lombok.extern.log4j.Log4j2;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Log4j2
|
|
||||||
@Service
|
|
||||||
public class VehicleInstanceServiceImpl implements VehicleInstanceService {
|
|
||||||
@Override
|
|
||||||
public void vehicleClientStart(String vin) {
|
|
||||||
log.info("车辆{},开始上线",vin);
|
|
||||||
String timestamp = String.valueOf(System.currentTimeMillis());
|
|
||||||
VehicleConnectionReq.builder()
|
|
||||||
.vin(vin)
|
|
||||||
.timestamp(timestamp)
|
|
||||||
.userName(MD5Util.encrypted(vin+timestamp))
|
|
||||||
.nonce(MD5Util.encrypted(UUID.randomUUID().toString().replace("-","")))
|
|
||||||
.build();
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue