I have a problem with the yun behaviour when the wifi network is not available.
In the thread http://forum.arduino.cc/index.php?topic=188637.msg1395870#msg1395870
I asked the question
This means that if my wifi is not available for 60 seconds I get into a deadlock situation.
In other words If the wifi is unavailable for 60 seconds when my robot is rebooting my robot will never start again.
Can I configure yun not to do so?
on which Federico replied
Of course you can. Since you need to edit a file on the yun, I suggest you to connect to the yun with an SSH client or with some serial terminal software like cutecom or putty
Once you are in, edit /etc/rc.local and put a hash at the beginning of line “wifi-live-or-reset” so that it looks like
At next reboot, yun won’t bother if wifi is up or down
I was really happy with that untill the first time the network was actually not available.
I noticed that my yun actually went to accespoint mode on IP 192.168.240.1.
After I rebooted it behaved the same (still no network).
After I rebooted closer to the wifi ap he started and connected and worked fine.
So I reread and I noticed the phrase: “At next reboot, yun won’t bother if wifi is up or down”
That is not what I want. I want yun (when not connected to wifi) to try to connect to my wifi untill it is connected.
This is how my openwrt +arduino mega works.
Can that be done?