sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.61k stars 621 forks source link

Problem with Watchdog and sample code LoRaSimpleGateway and LoRaSimpleNode #585

Open MirkoUgoliniDev opened 1 year ago

MirkoUgoliniDev commented 1 year ago

Hello all,

I tried to use the two code examples RaSimpleGateway and LoRaSimpleNode, but the code goes into this error: Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).

In my humble opinion the problem lies in the use of the Serial.println () function inside the callback defined for receiving data.

By modifying the code of both examples using a call to a Task the problem does not arise and everything works perfectly. I am attaching my sources hoping it will be useful to someone. LoRaSimpleNode.zip

IoTThinks commented 1 year ago

By right, we should not process anything in callback except setting flags.

I used tasks too. Works ok.