Skip to content

Cayenne Low Power Payload Encoder and Decoder in Node.JS

Notifications You must be signed in to change notification settings

crapougnax/cayennelpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cayenne Low Power Payload Encoder and Decoder in Node.JS

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%