This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const IS = process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:1885' | |
| const AS = process.env.TTN_LW_CONSOLE_UI_AS_BASE_URL || 'http://localhost:1885' | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${IS}/api/v3`, as: `${AS}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const IS = process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:1885' | |
| const AS = process.env.TTN_LW_CONSOLE_UI_AS_BASE_URL || 'http://localhost:1885' | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${IS}/api/v3`, as: `${AS}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import TTN, { STACK_COMPONENTS_MAP, AUTHORIZATION_MODES } from '.' | |
| const stack = { | |
| [STACK_COMPONENTS_MAP.is]: | |
| process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.gs]: | |
| process.env.TTN_LW_CONSOLE_UI_GS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.ns]: | |
| process.env.TTN_LW_CONSOLE_UI_NS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.as]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // uplink-payload.js | |
| const _ = require("lodash"); | |
| class UplinkPayload { | |
| constructor(payload) { | |
| const jsonPayload = JSON.parse(payload.toString()); | |
| this._payload = jsonPayload; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.bracketPairColorization.independentColorPoolPerBracketType": true, | |
| "editor.guides.bracketPairs": true, | |
| "editor.renderWhitespace": "boundary", | |
| "editor.fontFamily": "Cascadia Code", | |
| "editor.fontSize": 14, | |
| "editor.fontWeight": "600", | |
| "editor.letterSpacing": -0.2, | |
| "editor.lightbulb.enabled": false, | |
| "editor.rulers": [80, 100, 120], |
OlderNewer