Report comment

Hi susan, sorry for slow response, i have been away. The service triggers once the system signals the network is available so it should connect but it may be possible that another program causes a long enough delay for the ssid not to be detectable. Try removing the # infront of the wpa_supplicant line in /etc/network/interfaces it isn't needed for this script. The pi will connect to wifi, if available, without the script. Then the script will asses the situation and switch if required. Let me know if you still have an issue.