Skip to content

Commit

Permalink
loopname
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Feb 27, 2024
1 parent 5526545 commit 26ff31d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/app/meter.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,8 @@ exports.post = async (event, context) => {
try {
meter = await new Meter(null, body.SERIALNUMBER + '_' + body.MODBUSDEVICE).get()
console.log(body.SERIALNUMBER + '_' + body.MODBUSDEVICE)
if (body.SERIALNUMBER + '_' + body.MODBUSDEVICE === '001EC60553A5_53') {
console.log('Body of 001EC60553A5_53 is: ')
console.log(JSON.stringify(body))
}
console.log('Body of all devices is: ')
console.log(JSON.stringify(body))
} catch (err) {
if (err.name === 'MeterNotFound') {
meter = await Meter.create(
Expand Down

0 comments on commit 26ff31d

Please sign in to comment.