Help avoiding com port errors
              in 
             Integration and Hardware 
              •  
              8 months ago    
            
 
           
             Is it possible to write code to catch com port errors before they interfere with the processing sketch?
            
             
            
            
 
            
           
             I have two arduino plugged in via separate com ports.
            
            
             My processing sketch works fine as long as the arduinos are online...
            
            
             If I forget to plug one in or I don't give the pro micro time to boot up then my processing sketch runs but will not receive data input and I need to manually shut it down and start over again...
            
            
             Is there a workaround??
            
            
             I am just reading a serial data stream from each arduino (no arduino library)..  The processing sketch will generate exceptions when something in the com port is wrong but when I run the compiled exe file it just works fine but won't process the serial data.
            
 
            
              
              1  
            
 
            