Nov-21-2021, 11:47 PM
Looks correct to me. Two things to try:
Make sure that the code logic and micropython aren't doing anything odd here. This should be caught as well:
Make sure that the code logic and micropython aren't doing anything odd here. This should be caught as well:
try: raise OSError('Test error') blynk = BlynkLib.Blynk(BLYNK_AUTH, insecure=False, # disable SSL/TLS server='blynk.cloud', # set server address port=443, # set server port heartbeat=30, # set heartbeat to 30 secs log=False # use print function for debug logging ) except OSError as e: print('ERROR***', e) #machine.reset()And:
try: blynk = BlynkLib.Blynk(BLYNK_AUTH, insecure=False, # disable SSL/TLS server='blynk.cloud', # set server address port=443, # set server port heartbeat=30, # set heartbeat to 30 secs log=False # use print function for debug logging ) except: print('ERROR***') #machine.reset()I see no reason that the OSError shouldn't be caught, but this test should catch any possible exception. Maybe try them and see if they are both caught or not.