Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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