My Electron sits on a place where the cellular signal is very weak, so it takes minutes to connect to the cloud.
While it is connecting, it seems my application code is blocked. In the code, I try to read Serial messages from an Arduino board. Even after I enable the SYSTEM THREAD, I still cannot receive the Serial messages when Electron is connecting to the cloud.
I am thinking to use Semi-automatic mode instead of Automatic mode, but it seems that the user code will be blocked in the same way when I call “particle.connect()”.
Is there any way for me to receive Serial messages and then make Electron sleep while it is connecting to the cloud?