@crapougnax/cayennelpp

1.2.0 • Public • Published

Cayenne LPP

A Node module to encode and decode Cayenne Low Power Payload for LoraWan

Usage

import { LPPEncoder,LPPDecoder } from  '@crapougnax/cayennelpp'

const encoder = new LPPEncoder()
encoder.addTemperature(99, 33.0)
const pl = encoder.getPayload().toString('base64')

const decoder = new LPPEncoder(buffer)
decoder.decode()
const temperature1 = decoder.getChannel(1).temperature

Test

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i @crapougnax/cayennelpp

Weekly Downloads

2

Version

1.2.0

License

Apache-2.0

Unpacked Size

27.1 kB

Total Files

17

Last publish

Collaborators

  • crapougnax