|
|
|
@ -68,6 +68,8 @@ public class DeviceReceiver { |
|
|
|
|
//当设备推送一次就记录一次 另外一个服务会通过设备id从缓存中取值来 判断设备是否在线
|
|
|
|
|
redisCache.setCacheObject(deviceInfo.getDeviceId(),deviceInfo.getDeviceId()); |
|
|
|
|
redisCache.expire(deviceInfo.getDeviceId(),180); |
|
|
|
|
redisCache.setCacheObject("level_"+deviceInfo.getDeviceId(),deviceInfo.getFuelLevel()+""); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 没有异常就确认消息 |
|
|
|
|
* basicAck(long deliveryTag, boolean multiple) |
|
|
|
|