Skip to content

Commit

Permalink
chore: fixup sparkplug encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ferm10n committed May 3, 2024
1 parent e807bdf commit 4df2577
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/Model/sparkplugb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const SparkplugDecoder = {
export const SparkplugEncoder = {
encode(input: string): Buffer | undefined {
try {
console.log(input)
const payload = JSON.parse(input)
return Buffer.from(
SparkplugPayload.encode(
Expand All @@ -37,7 +36,7 @@ export const SparkplugEncoder = {
).finish()
)
} catch (err) {
// todo ?
console.error(err)
}
},
}

0 comments on commit 4df2577

Please sign in to comment.