Set inactive flag in charger to 2 times the OCPP soap interval
MODIFY
src/storage/mongodb/DatabaseUtils.ts
src/storage/mongodb/DatabaseUtils.ts
@@ -452,7 +452,12 @@ export default class DatabaseUtils {
inactive: {
$or: [
{ $eq: ['$firmwareUpdateStatus', OCPPFirmwareStatus.INSTALLING] },
- { $gte: [ { $divide: [{ $subtract: [new Date(), '$lastSeen'] }, 1000] }, 120 ] }
+ {
+ $gte: [
+ { $divide: [{ $subtract: [new Date(), '$lastSeen'] }, 1000] },
+ Configuration.getChargingStationConfig().heartbeatIntervalOCPPSSecs * 2
+ ]
+ }
]
}
}

Set inactive flag in charger to 2 times the OCPP soap interval