Hi, I was wondering if is possible to configure the arduino yun to connect to several wifi's automatically without having to configure it for one in specific. Let's say I have WiFi A, B and C, and if I reach any of those wifi's my arduino will connect to it automatically.
Also, is there a way to prevent the yun from loosing it's connection to a wifi? I find myself sometimes working with the arduino and when I'm not using the arduino after a while it stop responding to the command I send over the internet, I hope I made myself clear enough.
[quote=Martin post_id=206 time=1488367442 user_id=82]
Hi, I was wondering if is possible to configure the arduino yun to connect to several wifi's automatically without having to configure it for one in specific. Let's say I have WiFi A, B and C, and if I reach any of those wifi's my arduino will connect to it automatically.
Also, is there a way to prevent the yun from loosing it's connection to a wifi? I find myself sometimes working with the arduino and when I'm not using the arduino after a while it stop responding to the command I send over the internet, I hope I made myself clear enough.
Thanks in advance!
[/quote]
I have the same issue... wifi loses connection from time to time... is there a way to restart the yun (or wifi) via python script or sketch or something, when the internet connection drops?
currently I'm running a script which pings google.com to see wether internet is up or not... but I can't figure out the restarting....
in /etc/rc.local there is the line "wifi-live-or-reset", which works at boot...but how to (or should we) run that with python?! is there a better solution?
[quote=William post_id=207 time=1488367502 user_id=64][quote=Martin post_id=206 time=1488367442 user_id=82]
Hi, I was wondering if is possible to configure the arduino yun to connect to several wifi's automatically without having to configure it for one in specific. Let's say I have WiFi A, B and C, and if I reach any of those wifi's my arduino will connect to it automatically.
Also, is there a way to prevent the yun from loosing it's connection to a wifi? I find myself sometimes working with the arduino and when I'm not using the arduino after a while it stop responding to the command I send over the internet, I hope I made myself clear enough.
Thanks in advance!
[/quote]
I have the same issue... wifi loses connection from time to time... is there a way to restart the yun (or wifi) via python script or sketch or something, when the internet connection drops?
currently I'm running a script which pings google.com to see wether internet is up or not... but I can't figure out the restarting....
in /etc/rc.local there is the line "wifi-live-or-reset", which works at boot...but how to (or should we) run that with python?! is there a better solution?
[/quote]
You should check this post out, A complete code how to connect to Wifi SSID automatically. Here's the link: http://www.theengineeringprojects.com/2016/02/automatically-connect-with-wifi-ssid-using-arduino-yun.html
it's an interesting project, but the Yun already connects - unless it cannot find the AP. That article might be best if advertised that way.