Skip to content

Commit

Permalink
add lastMeasure to device api
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jan 10, 2025
1 parent c08b427 commit 65f5d3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/services/northBound/deviceProvisioningServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const provisioningAPITranslation = {
ngsiVersion: 'ngsiVersion',
entityNameExp: 'entityNameExp',
payloadType: 'payloadType',
storeLastMeasure: 'storeLastMeasure'
storeLastMeasure: 'storeLastMeasure',
lastMeasure: 'lastMeasure'
};

/**
Expand Down Expand Up @@ -145,7 +146,8 @@ function handleProvision(req, res, next) {
explicitAttrs: body.explicitAttrs,
ngsiVersion: body.ngsiVersion,
payloadType: body.payloadType,
storeLastMeasure: body.storeLastMeasure
storeLastMeasure: body.storeLastMeasure,
lastMeasure: body.lastMeasure
});
}

Expand Down Expand Up @@ -223,7 +225,8 @@ function toProvisioningAPIFormat(device) {
explicitAttrs: device.explicitAttrs,
ngsiVersion: device.ngsiVersion,
payloadType: device.payloadType,
storeLastMeasure: device.storeLastMeasure
storeLastMeasure: device.storeLastMeasure,
lastMeasure: device.lastMeasure
};
}

Expand Down

0 comments on commit 65f5d3f

Please sign in to comment.