Search in sources :

Example 11 with LwM2MClientFwOtaInfo

use of org.thingsboard.server.transport.lwm2m.server.ota.firmware.LwM2MClientFwOtaInfo in project thingsboard by thingsboard.

the class DefaultLwM2MOtaUpdateService method onCurrentFirmwareVersion3Update.

@Override
public void onCurrentFirmwareVersion3Update(LwM2mClient client, String version) {
    log.debug("[{}] Current fw version(3): {}", client.getEndpoint(), version);
    LwM2MClientFwOtaInfo fwInfo = getOrInitFwInfo(client);
    fwInfo.setCurrentVersion3(version);
}
Also used : LwM2MClientFwOtaInfo(org.thingsboard.server.transport.lwm2m.server.ota.firmware.LwM2MClientFwOtaInfo)

Aggregations

LwM2MClientFwOtaInfo (org.thingsboard.server.transport.lwm2m.server.ota.firmware.LwM2MClientFwOtaInfo)11 OtaPackageUpdateStatus (org.thingsboard.server.common.data.ota.OtaPackageUpdateStatus)2 LwM2MClientSwOtaInfo (org.thingsboard.server.transport.lwm2m.server.ota.software.LwM2MClientSwOtaInfo)2 ArrayList (java.util.ArrayList)1 FirmwareUpdateResult (org.thingsboard.server.transport.lwm2m.server.ota.firmware.FirmwareUpdateResult)1 FirmwareUpdateState (org.thingsboard.server.transport.lwm2m.server.ota.firmware.FirmwareUpdateState)1