Wiki source code of Delete devices from Build-in The Things Network
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = 1. Upgrade LPS8v2's TTS to HTTPS = | ||
2 | |||
3 | |||
4 | 1). Download the upgrade script, | ||
5 | |||
6 | wget http:~/~/repo.dragino.com/release/tool/ttnstack/upgrade_to_https.sh && chmod +x upgrade_to_https.sh | ||
7 | |||
8 | [[image:1690793819929-828.png]] | ||
9 | |||
10 | |||
11 | 2). Run the upgrade script | ||
12 | |||
13 | ./upgrade_to_https.sh <step> <Local Ip Address> | ||
14 | |||
15 | [[image:1690793801312-653.png]] | ||
16 | |||
17 | |||
18 | (% style="color:red" %)**Note that:** | ||
19 | |||
20 | parameter 1 tells the script which steps it should start from. | ||
21 | |||
22 | parameter 2 is the configured local IP address. | ||
23 | |||
24 | |||
25 | 3). Check the TTS running status | ||
26 | |||
27 | [[image:1690793877462-490.png]] | ||
28 | |||
29 | |||
30 | |||
31 | = 2. Install ttn-lw-cli = | ||
32 | |||
33 | |||
34 | 1). Download ttn-lw-cli | ||
35 | |||
36 | [[https:~~/~~/www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries>>url:https://www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries]] | ||
37 | |||
38 | [[image:1690794001186-556.png]] | ||
39 | |||
40 | |||
41 | (% style="color:blue" %)**Login the lps8v2's tts via ttn-lw-cli** | ||
42 | |||
43 | [[image:1690794013040-498.png]] | ||
44 | |||
45 | |||
46 | (% style="color:blue" %)**Node:** | ||
47 | |||
48 | You need to configure a ca certificate for the cli, The ca certificate is inside the gateway and the directory path is : /usr/lib/ttn-stack/ca.pem | ||
49 | |||
50 | Manually modify the ttn-lw-cli configuration file .ttn-lw-cli.yml: | ||
51 | |||
52 | [[image:1690794039057-792.png]] | ||
53 | |||
54 | |||
55 | (% style="color:blue" %)**ttn-lw-cli directory tree structure:** | ||
56 | |||
57 | [[image:1690794060552-527.png]] | ||
58 | |||
59 | |||
60 | (% style="color:blue" %)**Delete End Devices.** | ||
61 | |||
62 | [[image:1690794073644-821.png]] |