Ok,
Found a temporary solution... create a bash script, eg. checkwifi.sh
copy the following to the file..
#!/bin/bash
sudo iwconfig 2>&1 | grep ESSID > /home/pi/connected.txt
This will create the bash script file as above, if not connected the ESSID will show "ESSID:off/any"
function check_wifi_connected( /* */ )
// Copy the 'checkwifi.sh' to the media folder, where bytecode.byc lives
RunApp( "./checkwifi.sh","" )
// Test text file for the string 'off'
fdesc = OpenToRead( "raw:/home/pi/connected.txt" )
if( fdesc > 0 )
result$ = ReadLine( fdesc )
CloseFile( fdesc )
DeleteFile( "raw:/home/pi/connected.txt" )
if( FindString( result$, "off" ) > 0 )
exitfunction( false )
endif
endif
endfunction( true )
It's only a quick workaround, but does the trick
Yeshu777