-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I just had the library crash the thread when it received an SMS. here is the log:
2021-10-17 09:03:56,265 - gsmHat.gsmHat - DEBUG - Received Data: +SAPBR: 1,3,"0.0.0.0"
2021-10-17 09:03:56,295 - gsmHat.gsmHat - DEBUG - Received Data: OK
2021-10-17 09:03:56,307 - gsmHat.gsmHat - DEBUG - Lock Off
2021-10-17 09:03:56,313 - gsmHat.gsmHat - ERROR - Timeout during data reception
2021-10-17 09:03:56,318 - gsmHat.gsmHat - INFO - Command sent: AT+SAPBR=2,1
2021-10-17 09:03:56,324 - gsmHat.gsmHat - INFO - Actual state of programme: 61
2021-10-17 09:03:56,326 - gsmHat.gsmHat - CRITICAL - Exception: Unhandled timeout during data reception
looking at the script after sending the critical warning it basically causes the script to end using the raise command. Why does it do that? As soon as that happens the library stops working within my script and I don't get any sms messages being sent out or received. Is there a more graceful way to handle the error? Maybe making it wait a few seconds and then try again later?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels