Skip to content

Commit

Permalink
Merge pull request #83 from tago-io/fix/kpn-things-network
Browse files Browse the repository at this point in the history
fix/kpn-things-network
  • Loading branch information
FabianoEger authored Aug 29, 2024
2 parents d6b4214 + 51e3785 commit e01212f
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 e01212f

Please sign in to comment.