how many times can you spot the letter "e" in:
is there a working example how to send lorawan packets with otaa in a deepsleep loop?
so far i'm only able todo this loop with joining lora after each deepsleep cycle, but thas quite a bit of aditional airtime which i would like to avoid beside that packet count always is 1.
@roadfox late response, but this doesn't look like a correct approach, as the join (and send) might have failed. next time it will detect that it comes out of deepsleep and assume that it has joined, which it hasn't, so "if boot" must be replaced by something like "if successfully joined and not boot".
add a time.sleep(2) after sending, before saving and going to deep sleep.
i had the same problem and i only could solve it using confirmed messages.
what kind of deep sleep are you using? deep sleep shield? pysense? pytrack?
how do you detect whether you're coming from deep sleep or some other form of startup?
set the socket and lora instances.
send data over the network.
so far everything is working beside the fact that lorawan frame counter is always at 1 and the packets are dropped in ttn unless i disable frame counter checks.
should nvram_save/restore not also save the framecounter?
are you using the most recent firmware? are you using nvram_save (before going to sleep) and nvram_restore (after coming back from sleep)?
user
In that passage, there are one hundred and forty occurrences of the letter "e."
assistant