2 concurrent while true loops?
Posted: Thu Sep 01, 2022 12:57 pm
Hello folks.
I’ve been trying to get some scripts to work together unsuccessfully for the past few nights. Nothing complicated. Just ideas I have put together from sources like this one.
Boot with Access Point on
Main runs a loop that takes a measurement from a sensor and writes it to reading.txt once each day, then main imports server
Server.py is a socket server with a while true loop so I can connect to the board and download reading.txt.
Is it possible that my frustration is because the board cannot handle two while true loops at once? I hope so because then I can look for a different way to support my plan. Otherwise I will keep looking for script errors.
Grateful for your insights.
Greg
I’ve been trying to get some scripts to work together unsuccessfully for the past few nights. Nothing complicated. Just ideas I have put together from sources like this one.
Boot with Access Point on
Main runs a loop that takes a measurement from a sensor and writes it to reading.txt once each day, then main imports server
Server.py is a socket server with a while true loop so I can connect to the board and download reading.txt.
Is it possible that my frustration is because the board cannot handle two while true loops at once? I hope so because then I can look for a different way to support my plan. Otherwise I will keep looking for script errors.
Grateful for your insights.
Greg