mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 08:06:34 +01:00
included tutorial on nvram usage
This commit is contained in:
@@ -222,18 +222,16 @@ lora.callback(trigger=(LoRa.RX_PACKET_EVENT | LoRa.TX_PACKET_EVENT), handler=lor
|
||||
|
||||
Save the LoRaWAN state (joined status, network keys, packet counters, etc) in non-volatile memory in order to be able to restore the state when coming out of deepsleep or a power cycle.
|
||||
|
||||
```python
|
||||
lora.nvram_save()
|
||||
```
|
||||
|
||||
### lora.nvram_restore()
|
||||
|
||||
Restore the LoRaWAN state (joined status, network keys, packet counters, etc) from non-volatile memory. State must have been previously stored with a call to `nvram_save` before entering deepsleep. This is useful to be able to send a LoRaWAN message immediately after coming out of deepsleep without having to join the network again. This can only be used if the current region matches the one saved.
|
||||
Restore the LoRaWAN state (joined status, network keys, packet counters, etc) from non-volatile memory. State must have been previously stored with a call to `nvram_save` before entering deepsleep. This is useful to be able to send a LoRaWAN message immediately after coming out of deepsleep without having to join the network again. This can only be used if the current region matches the one saved. Note that the nvram will be cleared after using this method.
|
||||
|
||||
### lora.nvram_erase()
|
||||
|
||||
Remove the LoRaWAN state (joined status, network keys, packet counters, etc) from non-volatile memory.
|
||||
|
||||
See the [tutorials](/tutorials/networks/lora/nvram/) for an example on how to use nvram
|
||||
|
||||
### lora.mesh()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user