UDP and HTTP requests cause CPU Resets

Here we can discuss about the problem found
Post Reply
peridot
Posts: 13
Joined: Mon Mar 08, 2021 4:54 am
Has thanked: 2 times
Been thanked: 18 times

UDP and HTTP requests cause CPU Resets

Post by peridot »

I am running ESP32 with latest ver 1.43 .
I would like to run UDP and HTTP Get Request messages at the same time , I am receiving sensor data some via send HTTP requests and others UDP.
If I run them at the same time the code works OK receiving both message types (data in json format) however the CPU periodically resets , the program recovers and carries on but not good of course. If I disable the OnUrlMessage Event the program runs without resets. Now I do remember I believe I could not run this combination on the ESP8266 , its crashed permanently. Is this a known issue ?
peridot
Posts: 13
Joined: Mon Mar 08, 2021 4:54 am
Has thanked: 2 times
Been thanked: 18 times

Re: UDP and HTTP requests cause CPU Resets

Post by peridot »

I have done some re coding, originally I had the UDP stream being sampled in my main loop just by v$ = udp.read$. I have done it this way for a long time and its has proved to be very stable and suited my program flow. The HTTP request I was retrieving via an event branch.
I have now coded both UDP and HTTP streams via events and so far I have had no CPU resets, touch wood this looks fixed!
Post Reply