updated the pid of pygate, added machine.pygate_reset
This commit is contained in:
gijsio
2020-08-28 15:23:01 +02:00
parent 0d354acf15
commit 875b840eee
2 changed files with 7 additions and 3 deletions

View File

@@ -10,16 +10,20 @@ The Pygate is an 8-channel LoRaWAN gateway. Connect a WiPy, Gpy or LoPy4 board t
## Methods
### machine.pygate_init(buff)
### machine.pygate_init(config)
This function is used to initialize the Pygate
- `buff`: the data contents of the gateway global config json file
- `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 function `handler`, the triggers/events are:

View File

@@ -27,7 +27,7 @@ In normal operation, the expansionboard is in Application mode. However when we
| Board | DFU bootloader (update mode) | Application firmware (normal mode) |
| :--- | :--- | :--- |
| Pygate | |
| Pygate | `0xED15` | `0xED14` |
| Pytrack | `0xF014` | `0xF013` |
| Pysense | `0xF011` | `0xF012` |
| Pyscan | `0xEF37` | `0xEF38` |