|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
query wifi status
Hi,
Wondering what the easiest way to determine if you have an active wifi connection from the command line? I am currently grepping for an ip address in the output from ifconfig. Maybe there is an easier way? Thanks! |
|
|
|
|
|
#2 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
python code to turn wifi on and wait until connected
I found this code to work well - turn wifi on, wait until connected, allow a timeout:
Code:
sp = subprocess.Popen(['lipc-set-prop', 'com.lab126.cmd', 'wirelessEnable', '1'], stdout=subprocess.PIPE) wifi = 'OFF' loop = 0 while loop < 40: Last edited by handyguy; 12-31-2019 at 01:41 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email to Kindle only works on work wifi but not on home wifi? | nat_l | Calibre | 5 | 08-16-2019 03:23 PM |
| kobo aura one - cannot connect to wifi (mobile wifi works fine as hotspot) | wakkaday | Kobo Reader | 3 | 09-28-2016 01:44 PM |
| Kindle 3 wifi keeps deleting Developer Keystore every time wifi is turned on. | fireether | Kindle Developer's Corner | 4 | 04-18-2013 01:56 PM |
| Hello and query | MPDuke | Introduce Yourself | 8 | 12-13-2011 11:27 AM |
| Classic Unrooting my Nook Wifi lost Wifi connection: unable to save the hotspot | SnerdlyBosco | Nook Developer's Corner | 2 | 03-08-2011 09:17 AM |