wakeup()
Processing after waking from sleep
Called before transitioning to
loop()
after waking from sleep, this function includes procedures for initialization after waking and branching processes according to the wake-up state.If there are only processes such as sensor readings and no processing in
loop()
, you can execute sleep again within this function.This callback function definition is optional.