You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorials/all/PyGate.md
+124Lines changed: 124 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,3 +259,127 @@ To stop the Pygate at any time use:
259
259
- using deinit function `machine.pygate_deinit()`
260
260
261
261
that will stop GW tasks and safely power off the Concentrator.
262
+
263
+
264
+
__Note__: The Pygate packet forwarder is a legacy packet forwarder, you must make sure you use check legacy packet forwarder option in TTN as shown below.
-`buff`: data contents of gateway global config json file
278
+
279
+
when no parameter is passed to function the Pygate is just powered on. (will be useful when using pygate as just a concentrator controllable via uart by another device eg. RPi)
280
+
281
+
#### machine.pygate\_deinit()
282
+
283
+
Shuts down concentrator.
284
+
285
+
#### machine.pygate\_cmd\_decode(buff)
286
+
287
+
send lora gateway command to concentrator, this is useful when packet forwarder / HAL software is run on a different device (eg. Rpi) and commands to concentrator are passed to Pygate via uart
288
+
289
+
#### machine.pygate\_cmd\_get()
290
+
291
+
Get command execution result from concentrator.
292
+
293
+
Example script when running Packet forwarder sw on a different device:
0 commit comments