Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhenakh/cayenne
Go Cayenne encoding and decoding
https://github.com/akhenakh/cayenne
Last synced: 24 days ago
JSON representation
Go Cayenne encoding and decoding
- Host: GitHub
- URL: https://github.com/akhenakh/cayenne
- Owner: akhenakh
- License: mit
- Created: 2019-11-21T17:49:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T21:02:48.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T05:11:52.170Z (5 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
Cayenne
-------A library to support [Cayenne binary encoding](https://developers.mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload)
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)
```