Skip to content

Commit

Permalink
Remove payload declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscardosodeveloper committed Aug 29, 2024
1 parent d6b4214 commit 51e3785
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions decoders/network/kpn-things/v1.0.0/payload.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { Data, DataToSend } from "@tago-io/sdk/lib/types";

declare let payload: DataToSend[];

/**
* @description SenML is a simple format for representing sensor measurements.
* Documentation https://datatracker.ietf.org/doc/html/rfc8428#section-5
Expand Down Expand Up @@ -62,7 +58,7 @@ function parseVariable(variableName: string): string {
* @param {SenML[]} senMLObj - SenML object
*/
function decoder(senMLObj: SenML[]) {
const toTagoJSON: Pick<Data, "variable" | "value" | "time" | "unit" | "group" | "serie">[] = [];
const toTagoJSON: any[] = [];
const serie = String(new Date().getTime());

let currTime = Date.now();
Expand Down

0 comments on commit 51e3785

Please sign in to comment.