Created
August 7, 2019 07:12
-
-
Save bafonins/d409e23958b313cd6769b008e60bff91 to your computer and use it in GitHub Desktop.
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 TTN = require('ttn-lw').default | |
| const js = process.env.TTN_LW_JOIN_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { js: `${js}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, | |
| } | |
| ); | |
| (async function () { | |
| const prefixes = await ttnClient.Js.listJoinEUIPrefixes() | |
| console.log(prefixes) | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment