Included esp_sleep.h and exhanged os_setTimedCallback for deep sleep with timer wakeup.
This causes the setup loop to run again upon awakening, but this was not a problem when i tested it.
I also changed the tx interval to 120, since this is the fair-use interval suggested by TTN.
Included esp_sleep.h and exhanged os_setTimedCallback for deep sleep with timer wakeup. This causes the setup loop to run again upon awakening, but this was not a problem when i tested it. I also changed the tx interval to 120, since this is the fair-use interval suggested by TTN.