1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-01 17:41:54 +01:00

target: Add is_network_connected method

This commit is contained in:
Brendan Jackman
2017-10-18 11:28:08 +01:00
parent 16d5e0b6a7
commit 486b3f524e
2 changed files with 42 additions and 0 deletions

View File

@@ -480,6 +480,13 @@ Target
bzip2), the path to the decompressed file is returned; for archives, the
path to the directory with the archive's contents is returned.
.. method:: Target.is_network_connected()
Checks for internet connectivity on the device. This doesn't actually
guarantee that the internet connection is "working" (which is rather
nebulous), it's intended just for failing early when definitively _not_
connected to the internet.
:returns: ``True`` if internet seems available, ``False`` otherwise.
Android Target
---------------