1.3 KiB
title, aliases
| title | aliases | |||
|---|---|---|---|---|
| Pygate |
|
The Pygate is an 8-channel LoRaWAN gateway. Connect a WiPy, Gpy or LoPy4 board to the Pygate and flash the Pygate firmware. See the Pygate tutorial to get started.
Methods
machine.pygate_init(config)
This function is used to initialize the Pygate
config: the data contents of the gateway global config json file
machine.pygate_deinit()
This shuts down the concentrator.
machine.pygate_reset()
Resets the Pygate and inserted development module (including the LTE modem, if present). This actually power cycles the Pygate and the attached hardware and is not similar to machine.reset().
machine.callback(trigger, [handler=None, arg=None])
-
trigger: A trigger event(s) for invoking the callback functionhandler, the triggers/events are:machine.PYGATE_START_EVTmachine.PYGATE_STOP_EVTmachine.PYGATE_ERROR_EVT -
handler: The callback function to be called. When not passed to function, any pre-registered callback will be disabled/removed. -
arg: Optional argument to be passed to the callback function.
machine.events()
Get the Pygate events