• 1 Votes
    2 Posts
    618 Views
    J
    @tom You should probably instead do the following set socket to blocking send set socket to non-blocking receive save config Otherwise you actually try to receive, save, and deep sleep before the packet has actually been (completely) sent. An alternative is to add a manual sleep, but remember that the time between send and receive is variable (the network can change the RxDelay).
  • lora.nvram example needed

    LoPy nvram deepsleep lopy nvram lopy lorawan
    8
    0 Votes
    8 Posts
    2k Views
    G
    I know this is an old post but for me this is still an issue. Any may of learning more about the specifics would be very much appreciated e.g what does pycom.nvs_get(key) return? Should I see somthing in the REPL? Example: >>> lora.nvram_save() >>> l= pycom.nvs_get('lora') >>> print(l) None Am I going about this in completely the wrong way?
  • How to accomplish lora.nvram_restore() ?

    LoPy lopy nvram
    4
    0 Votes
    4 Posts
    1k Views
    J
    Yes, thank you. I know I only need save/restore for deepsleep. But was testing it without deepsleep. Shouldn't it still work? Still looking for any posted example of use of save / restore. Yes, splitting code irrelevant if deepsleep.