Report comment

Hi Mark, well it is good you have found the issue. The wifi being brought down and up shouldn't be an issue, but you can comment them out and see what happens.
All my PI's are fine except for the one that has the latest setup and for some reason the network need bringing up twice before the hotspot connect ok. All other situations are fine.
You shouldn't loose you wifi after a period of time unless there is interference from other devices nearby like cordless phones, microwaves etc or too many routers in your area are using the same channel. If you router doesn’t from change busy channels on it's own then restarting it often gets it to change to a quieter channel.