What kind of network are you using?
Are you sure that the network is not blocking the connection from the board?
I know you are able to ping a website but can you download packages using the wget command?
What is the outcome of running the command uname -a in the Terminal Console?
Thanx for your reply. Right now i am using open network to check whether everything is okay or not. But as i said, still it is not working. I am pretty sure that the network is not blocking the connection cause the same network can ping google properly through the terminal window. I can download the package by using wget command.u can see it as follows-
root@galileo:~# wget google.com
Connecting to google.com (220.127.116.11:80)
Connecting to www.google.co.nz (18.104.22.168:80)
index.html 13673 - stalled
after running uname -a command, the terminal window looks like this-
root@galileo:~# uname -a
Linux galileo 3.8.7-yocto-standard #1 Tue Jun 9 22:07:14 GMT 2015 i586 GNU/Linux
I think the arduino library somehow does not understand the configuration of the wifi card. Really do not understand how to solve it. Please, if you have any suggestion, share it .
You should be receiving the following warning when you upload the sketch:
WARNING: library WiFi claims to run on [i586-uclibc] architecture(s) and may be incompatible with your current board which runs on [i586] architecture(s).
The Image you are using according to the outcome of running uname -a is the EGLIBC, you should try with the UCLIBC image, you can found it here: http://downloadmirror.intel.com/24355/eng/SDCard.1.0.4.tar.bz2
Also, when you run wget google.com, you should have got something like:
Could you post the /var/lib/connman/wifi.config file?