Virtual LoRa packet forwarder that forwards RF packets from API to a server through a IP/UDP link, and emits RF packets that are sent by the server. To be used for Node.js applications.
In LoRaWAN, you will need real gateways and real devices for your real test case. However, it's simpler to using just simulated gateway and simulated devices in order to choose best LoRaWAN Network Server fulfills your real requirements.
- Node.js v8.x
npm intall --save packet-forwarder
Send an uplink to remote Network Server using Packet Forwarder protocol.
const PacketForwarder = require('packet-forwarder')
async function sendFakeUplink() {
const gateway = 'DABBCCFFFF2A79CB'
const target = 'network-server.foo-company.local'
const port = 1234
const packetForwarder = new PacketForwarder(gateway, target, port)
const message = { foo: 'invalid-message' }
await packetForwarder.sendUplink(message)
await packetForwarder.close()
}
Clone repository, install dependencies and run tests npm test
.
Add additional notes about how to deploy this on a live system
Respect standard
rules.
We use SemVer for versioning.
- Antonio Bustos - Initial work - antoniobusrod
This project is licensed under the MIT License - see the LICENSE file for details