The I/O pin states are the same in booth cases. I am using two timers instead of the appDeviceTaskHandler for my application control. Any button click is starting the timers. The first timer has TIMER_ONE_SHOT_MODE and defines the duration of the second timer, which is in TIMER_REPEAT_MODE with an interval of 50 ms.
I have some new insights:
1. If my device is connected and the connection is lost, then it trys to rejoin and after MAX_ATTEMPS_TO_ENTER_NETWORK is reached, it goes to sleep with 0,01 mA.
2. If my device was never connected to any network and no network is reachable, then it will do the same like bevor and goes to sleep for a very short time. But it immediately wakes up and consumes >12 mA. With acitve timers after button press the consumption goes down to 3 mA. If the timer has finished, it goes back to 12 mA again.