File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ for TTN is it is included in the application handler
55
55
- THINGS
56
56
7. URL: url of your ThingsBoard
57
57
8. PublicID: ->customers->copy customers ID
58
- ## script installation(In Progress...non-operational)------------------------------------------------------
58
+ ## script installation(service methode)
59
59
## DDorch addition
60
60
61
61
- add a user `gateway_ttn` on the server: `sudo adduser gateway_ttn`.
@@ -87,7 +87,7 @@ User=gateway_ttn
87
87
ExecStart=/usr/bin/env python3 /home/gateway_ttn/gateway_ttn-thingsboard.py
88
88
89
89
[ Install]
90
- WantedBy=multi-user.ta
90
+ WantedBy=multi-user.target
91
91
```
92
92
93
93
- Start the service: `sudo systemctl start`
@@ -105,6 +105,14 @@ gateway_ttn.service - Gateway between TTN and Thingsboard
105
105
106
106
- enable service at startup with command
107
107
````sudo systemctl enable gateway_ttn.service```
108
+ ## Use of the system
109
+ For the gateway to work correctly,
110
+ the Device ID on TTN must match the corresponding device on the things board.
111
+ - created a new device on Things board.
112
+ - copy your device ID.
113
+ - creates a new device on TTN with this device ID and the EUI device of the node.
114
+ - then enter the EUI application and the appKey in the node program.
115
+ in description in TTN it is recommended to place the device name and a link to the thingsboard
108
116
109
117
110
118
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def PostThingsboard( JsDATA, DeviceId):
79
79
80
80
printlog ("7/9 - send request telemetry" )
81
81
r = requests .post (dPrm ['THINGS' ]['url' ]+ '/api/v1/' + DeviceToken + '/telemetry' , json = JsDATA )
82
- printlog ("8/9 - request code reponse:" + str (r .text ))
82
+ printlog ("8/9 - request code reponse:" + str (r .text ))
83
83
if 'status' in ResponseDeviceToken .text :
84
84
printlog ( r .text )
85
85
printlog ("9/9 - ***done***" )
You can’t perform that action at this time.
0 commit comments