Report comment

Not sure how much or what kind of logs would be helpful, but...

I have two networks in my wpa_supplicant configuration if that matters.

Initially the PiZeroW connects to the wifi, but then, presumbably when the cron runs the script, it gets the address changed to the one for the hotspot mode but the hotspot doesn't come up, and in fact it is still connected to the WiFi.

In fact, right now, there are six instances of wpa_supplicant running, looking to having been started approx five minutes apart, so probably by the cron job.

In looking at it some more, using Google a lot, it seems it may have been because the following lines were not at the top of my wpa_supplicant.conf file:


Prior that I would get an error when running wpa_cli, which the script uses to determine the status of the connection.

I saw several mentions online (and in the manpage) that said:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

but that didn't work for me...

At least this is my guess, doing more testing/watching/waiting....