Error 507 handling

im trying to prevent my app from crashing after having an error when I try to connect to an offline HC-05 (ex. "error 507 unable to connect. is the device turned on?") what do I do and how do I do it? i apologize for my code blocks, I'm not so sure what I'm doing :sweat_smile:

I would start by removing the circled Screen1 open block from the Screen1 error event.
01f5f3b08f8a6d3d60b8e7cb4c95446c2db38070_2_690x257

additionally you can simplify the blocks like this

Taifun

ok, what's next?

What's next?