So what I found out was that the ping command does not work when the screen is black, but once I wake the phone the ping commands work. The phones does have internet access when the screen is off, as I can download a http page.
Is there a fix for this or an other way to test if I have internet access?
Code: Select all
14.04.2018 07:16:45.344 [Get weather] End executing action 'Set Mobile Datanetwork State: On'
14.04.2018 07:16:45.345 [Get weather] Flow continues executing with the next step.
14.04.2018 07:16:45.345 [Get weather] Start executing action 'Set WiFi State: On'
14.04.2018 07:16:45.345 [Get weather] Action 'Set WiFi State: On' enable = true
14.04.2018 07:16:45.353 [Get weather] End executing action 'Set WiFi State: On'
14.04.2018 07:16:45.353 [Get weather] Flow continues executing with the next step.
14.04.2018 07:16:45.353 [Get weather] Start executing action 'Sleep: 20s (keep device awake)'
14.04.2018 07:16:45.354 [Get weather] Action 'Sleep: 20s (keep device awake)' Sleeping for 20s (keep device awake)
14.04.2018 07:17:05.368 [Get weather] End executing action 'Sleep: 20s (keep device awake)'
14.04.2018 07:17:05.370 [Get weather] Flow continues executing with the next step.
14.04.2018 07:17:05.371 [Get weather] Start executing condition 'Host Reachable: ping www.google.com'
14.04.2018 07:17:05.376 [Get weather] Condition 'Host Reachable: ping www.google.com' Executing ping to host 'www.google.com'
14.04.2018 07:17:15.393 Process is still running, ending now
14.04.2018 07:17:15.471 [Get weather] Condition 'Host Reachable: ping www.google.com' Timeout in ping. Treating as unreachable.
14.04.2018 07:17:15.471 [Get weather] End executing condition 'Host Reachable: ping www.google.com' with return value false
14.04.2018 07:17:15.472 [Get weather] Flow continues executing with the next step.
14.04.2018 07:17:15.472 [Get weather] Start executing action 'Set Mobile Datanetwork State: On'
14.04.2018 07:17:15.616 Result: Parcel(00000000 '....')