I have an RPi3 box running Raspbian Jessie.
It is dual homed (Ethernet connected and WiFi enabled) and is supposed to be used as an instrumentation controller for remote data acquisition.
It has 4 relays hooked to GPIO ports to control power to the instrumentation and the data connection is by way of WiFi.
So I have set up the system via /etc/wpa_supplicant/wpa_supplicant.conf to have all info on the specific WiFi SSID in the instrument (it is acting like an Access point system).
My problem is this:
When I switch on the power to the instrument via the relays its AP comes on line almost instantly and I can see it via iwlist wlan0 scan.
But the RPi3 WiFi does not connect to the AP until about 6-7 minutes later, which is way too slow!
So is there some way to speed up the connection to a WiFi network when it appears on the air?
Ideally I would like response times in the range 10-15 seconds....
If I connect manually via the desktop icon it will do that much earlier but I need it to be automatic...
Even a cron script running every minute would be better than this slow system, but is there a way to command a connection to be done from a script?