Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sigfox/npm-sensit
NPM module to decode Sensit messages
https://github.com/sigfox/npm-sensit
Last synced: about 6 hours ago
JSON representation
NPM module to decode Sensit messages
- Host: GitHub
- URL: https://github.com/sigfox/npm-sensit
- Owner: sigfox
- Created: 2017-07-31T15:46:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T14:38:34.000Z (over 5 years ago)
- Last Synced: 2024-11-01T22:47:54.405Z (15 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sigfox Sensit
Very simple npm module to parse messages sent by a [Sensit](http://sensit.io) device
## Install
```
$ npm install --save sensit-sigfox
```## Use
```
const SensitMsg = require('./index.js');
var testFrame = "a06e1119";
var msg = SensitMsg.parse(testFrame);
```### Output
The `parse(hexFrame)` will gives back an object with the following attributes : `mode`, `frameType`, as well as mode-specific attributes (`battery`, `temperature`, ...)
## ⚠️ Work in progress
* Need to publish the Sensit frames documentation here
* All modes are not properly parsed yet