Categorygithub.com/akhenakh/cayenne
repositorypackage
0.0.0-20191121210236-2ec819ecc885
Repository: https://github.com/akhenakh/cayenne.git
Documentation: pkg.go.dev

# README

Cayenne

A library to support Cayenne binary encoding

It borrows all the decoding code from https://github.com/TheThingsNetwork/go-cayenne-lib, adding some helpers functions, goish style and go mod.

e := cayenne.NewEncoder()
e.AddGPS(1, 48.8, 2.2, 100.0)

b := e.Bytes()
hexPayload := hex.EncodeToString(b)
fmt.Println("Data", hexPayload)