Quote:
Originally Posted by sherman
No, it's a I haven't investigated how this actually behaves comment, because Wifi, and I do all my dev over a Wifi connection.
|
My original assumption was that it meant to send a signal when the Wifi was enabled or disabled. Anyway with my limited testing of this script (and miniscule knowledge of Kobo mods/script), I have noticed the below.
With wfmSetAirplaneMode removed from the script;
1. It does return a signal - if you enable or disable the Wifi from the icon on the screen.
With this script;
1. It does not seem to do anything = if you do not touch the screen.
2. It does return a signal = if you open the Wifi icon on the screen. The script can run for 30sec or 1min or 2min but when the Wifi icon is opened, about 10sec later it will return a signal.
3. It does return a signal = if you open something on the screen (about 10sec later). Open a book, My Books, Discover, synch etc are all I have tested. Opening NickelMenu 'menu' does not seem to have any affect.
4. It does return a signal = Access point is turned off - and you open the Wifi icon or Discover it will display "Searching for networks". Did not test this with other screen icons.
That's all I can think about to test, if you have anything specific you want tested let me know.
Also there might be something wrong with my script as it does not seem to timeout, have let it run for 10 minutes. Did let it run for 8 minutes and it displayed the "ERROR: timeout" message only after I opened a screen icon. If it let it run for 3min it displays the "Enabled Wifi" message. Am I doing something wrong, I have noticed this in another script I have done as well?
Code:
signal07=$(qndb -t 50000 -s wmWifiEnabled -t 40000 -m wfmSetAirplaneMode "enable")
if [ "$signal07" = "wmWifiEnabled true" ]; then
qndb -m dlgConfirmAccept "Wifi Timer 7" "Enabled Wifi" "OK"
elif [ "$signal07" = "wmWifiEnabled false" ]; then
qndb -m dlgConfirmAccept "Wifi Timer 7" "Failed to enable Wifi" "OK"
else
qndb -m dlgConfirmAccept "Wifi Timer 7" "ERROR: timeout" "OK"
fi
I did also test with changing dlgConfirmAccept to mwcToast as the dlgConfirmAccept sometimes got pushed to the background or accidently closed on some screens.