# lora-parser

> Nodejs module to parse UDP packet forwarded by Semtech packet_forwarder

Latest version **1.0.1** (published 2016-07-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install lora-parser
pnpm add lora-parser
yarn add lora-parser
bun add lora-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-07-18 |
| First published | 2016-07-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adnene KHALFA |
| Maintainers | adnene.khalfa |
| Keywords | LORAWAN, LoRa |

## Links

- npm: https://www.npmjs.com/package/lora-parser
- Repository: https://github.com/c10h22/lora-parser
- Homepage: https://github.com/c10h22/lora-parser#readme
- Issues: https://github.com/c10h22/lora-parser/issues
- npm.io page: https://npm.io/package/lora-parser

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-07-18
- 1.0.0 — 2016-07-18

## README

Lora-Parser
===========

Nodejs module to parse UDP datagrams forwarded by [semtech packet_forwarder](https://github.com/Lora-net/packet_forwarder)


#API Reference
    <a name="Packet"></a>

## Packet
Construct an instance of RF packet by using UDP datagrams forwarded by the LoRaWAN gateway.

**Kind**: global class  
**Summary**: RF Packet forwarded by gateway  

* [Packet](#Packet)
    * [new Packet(raw)](#new_Packet_new)
    * [.protocolVersion](#Packet+protocolVersion) ⇒ <code>[ProtocolVersion](#ProtocolVersion)</code>
    * [.token](#Packet+token) ⇒ <code>Buffer</code>
    * [.identifier](#Packet+identifier) ⇒ <code>[PacketIdentifier](#PacketIdentifier)</code>
    * [.message](#Packet+message) ⇒ <code>PushData</code> &#124; <code>\*</code>
    * [.raw](#Packet+raw) ⇒ <code>Buffer</code>

<a name="new_Packet_new"></a>

### new Packet(raw)

| Param | Type | Description |
| --- | --- | --- |
| raw | <code>Buffer</code> | data packet |

<a name="Packet+protocolVersion"></a>

### packet.protocolVersion ⇒ <code>[ProtocolVersion](#ProtocolVersion)</code>
Return Protocol version

**Kind**: instance property of <code>[Packet](#Packet)</code>  
<a name="Packet+token"></a>

### packet.token ⇒ <code>Buffer</code>
Return packet random token

**Kind**: instance property of <code>[Packet](#Packet)</code>  
**Returns**: <code>Buffer</code> - of 2 bytes  
<a name="Packet+identifier"></a>

### packet.identifier ⇒ <code>[PacketIdentifier](#PacketIdentifier)</code>
Data identifier

**Kind**: instance property of <code>[Packet](#Packet)</code>  
<a name="Packet+message"></a>

### packet.message ⇒ <code>PushData</code> &#124; <code>\*</code>
**Kind**: instance property of <code>[Packet](#Packet)</code>  
<a name="Packet+raw"></a>

### packet.raw ⇒ <code>Buffer</code>
Return raw data

**Kind**: instance property of <code>[Packet](#Packet)</code>  
**Returns**: <code>Buffer</code> - raw data  

    <a name="ProtocolVersion"></a>

## ProtocolVersion
Construct an instance of RF packet by using UDP datagrams forwarded by the LoRaWAN gateway.

**Kind**: global class  
**Summary**: RF Packet forwarded by gateway  
<a name="new_ProtocolVersion_new"></a>

### new ProtocolVersion(raw)

| Param | Type |
| --- | --- |
| raw | <code>Buffer</code> | 


    <a name="PacketIdentifier"></a>

## PacketIdentifier
**Kind**: global class  
**Throw**: Error  

* [PacketIdentifier](#PacketIdentifier)
    * [new PacketIdentifier(raw)](#new_PacketIdentifier_new)
    * [.raw](#PacketIdentifier+raw) ⇒ <code>Buffer</code> &#124; <code>\*</code>
    * [.value](#PacketIdentifier+value) ⇒ <code>Number</code>

<a name="new_PacketIdentifier_new"></a>

### new PacketIdentifier(raw)

| Param | Type |
| --- | --- |
| raw | <code>Buffer</code> | 

<a name="PacketIdentifier+raw"></a>

### packetIdentifier.raw ⇒ <code>Buffer</code> &#124; <code>\*</code>
Returns raw data

**Kind**: instance property of <code>[PacketIdentifier](#PacketIdentifier)</code>  
<a name="PacketIdentifier+value"></a>

### packetIdentifier.value ⇒ <code>Number</code>
Return the integer value of this packet identifier

**Kind**: instance property of <code>[PacketIdentifier](#PacketIdentifier)</code>

---
_Source: https://npm.io/package/lora-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
