bin 3 роки тому
джерело
коміт
feb65b7559
2 змінених файлів з 11 додано та 8 видалено
  1. +3
    -0
      src/main/java/com/ssjl/zhaobiao/guizhou/controller/IotController.java
  2. +8
    -8
      src/main/resources/application.properties

+ 3
- 0
src/main/java/com/ssjl/zhaobiao/guizhou/controller/IotController.java Переглянути файл

@@ -195,6 +195,7 @@ public class IotController {
byte[] nid = { 0x36, 0x14};
cdma.setNID(nid);
GZDeviceStatus deviceStatus = new GZDeviceStatus();
deviceStatus.setSOS(gps.getIdType() == 1);
// deviceStatus.setOpenFirst(true);
GpsDeviceStatus gpsDeviceStatus = gpsDeviceStatusMapper.selectByImei(gps.getImei());
IOTDeviceStatus iotDeviceStatus = IOTDeviceStatus.build(gpsDeviceStatus.getDeviceStatus());
@@ -247,6 +248,7 @@ public class IotController {
power.setCharge(false);
power.setPower(iotDeviceStatus.getBattery());
GZDeviceStatus deviceStatus = new GZDeviceStatus();
deviceStatus.setSOS(lbs.getIdType() == 1);
LocalDateTime time = LocalDateTime.now();
GZLocationExtend extend = new GZLocationExtend();
GZLocation location;
@@ -306,6 +308,7 @@ public class IotController {
power.setCharge(false);
power.setPower(batty);
GZDeviceStatus deviceStatus = new GZDeviceStatus();
deviceStatus.setSOS(wifi.getIdType() == 1);
LocalDateTime time = LocalDateTime.now();
GZLocationExtend extend = new GZLocationExtend();
List<GZLocationWIFIItem> itemList = new ArrayList<>();


+ 8
- 8
src/main/resources/application.properties Переглянути файл

@@ -40,15 +40,15 @@ netty.port=8888
# \u8D35\u5DDE\u7535\u4FE1\u53C2\u6570
guizhou.protocol=T01.4

#guizhou.factory=telpo
#guizhou.device.model=TPS401
#guizhou.device.version=ACB_1001
#guizhou.device.testList= [{ "imei": "862622050253671","phone": "" },{ "imei": "862622050253358","phone": "" },{ "imei": "800115470000678","phone": "" }]
guizhou.factory=telpo
guizhou.device.model=TPS401
guizhou.device.version=ACB_1001
guizhou.device.testList= [{ "imei": "862622050253671","phone": "" },{ "imei": "862622050253358","phone": "" },{ "imei": "800115470000678","phone": "" }]

guizhou.factory=zhizhong
guizhou.device.model=RZL600
guizhou.device.version=RZL_2021
guizhou.device.testList= [{ "imei": "862622050654340","phone": "" },{ "imei": "862622050317740","phone": "" }]
#guizhou.factory=zhizhong
#guizhou.device.model=RZL600
#guizhou.device.version=RZL_2021
#guizhou.device.testList= [{ "imei": "862622050654340","phone": "" },{ "imei": "862622050317740","phone": "" }]

#guizhou.factory=zhanneng
#guizhou.device.model=TPE390


Завантаження…
Відмінити
Зберегти