Browse Source

Import SPI/GPIO

master
Starbeamrainbowlabs 3 years ago
parent
commit
dcfbd2f498
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 5
      gateway.js
  2. 10
      package-lock.json
  3. 30
      package.json

5
gateway.js

@ -1,4 +1,9 @@ @@ -1,4 +1,9 @@
#!/usr/bin/env node
import Constants from './constants.mjs';
import Spi from 'spi';
import Gpio from 'gpio';
const settings = {
spi_device: "/dev/spidev0.0"
};

10
package-lock.json generated

@ -1,5 +1,13 @@ @@ -1,5 +1,13 @@
{
"name": "lora-gateway",
"version": "0.0.1",
"lockfileVersion": 1
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"gpio": {
"version": "0.2.10",
"resolved": "https://registry.npmjs.org/gpio/-/gpio-0.2.10.tgz",
"integrity": "sha512-VBFvAye/pK/oWHDUCa2F8jyrtHhnHXR/zHxMz3REEgznfMCQyzy6yRU8hFNuMSO+AG3YN4fH71Suj6mvM3cG3w=="
}
}
}

30
package.json

@ -1,15 +1,19 @@ @@ -1,15 +1,19 @@
{
"name": "lora-gateway",
"version": "0.0.1",
"description": "A bidirectional single-channel The Things Network gateway.",
"main": "gateway.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.starbeamrainbowlabs.com:sbrl/TheThingsNetworkGateway.git"
},
"author": "Starbeamrainbowlabs",
"license": "MPL-2.0"
"name": "lora-gateway",
"version": "0.0.1",
"description": "A bidirectional single-channel The Things Network gateway.",
"main": "gateway.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.starbeamrainbowlabs.com:sbrl/TheThingsNetworkGateway.git"
},
"author": "Starbeamrainbowlabs",
"license": "MPL-2.0",
"dependencies": {
"gpio": "^0.2.10",
"spi": "^0.2.0"
}
}