I did not realize that sample is for battery powered node. Now it works fine, thank you for the advice!