Hello everyone.
I have a problem, when I run the next skech, the module crashes. The LED stays on, the terminal appears "dato recivido" and the terminal can not close it until I restart the module.
If I remove the delay, everything works correctly.
My version of arduino is 1.8.5 and of card 1.6.19
Any ideas? Thank you.
interrupt service routines such as Active() should be as short as possible so the system does not hang or miss other events, e.g. in particular do not do serial IO or use delay()
you could use a volatile variable to pass information from the interrupt service routine to loop()