DeuxVis / Lora-TTNMapper-T-Beam

TTNMapper on the TTGO T-Beam
GNU General Public License v3.0
109 stars 47 forks source link

Deep sleep between sends #12

Closed NielsOerbaek closed 5 years ago

NielsOerbaek commented 5 years ago

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.

DeuxVis commented 5 years ago

This looks simple enough that I can accept it without testing, thanks.