ESP32-HUB75-MatrixPanel-DMA icon indicating copy to clipboard operation
ESP32-HUB75-MatrixPanel-DMA copied to clipboard

Conflict with AsyncHTTPSRequest_Generic

Open m-maazi opened this issue 3 years ago • 5 comments

I found a problem when using the this library and AsyncHTTPSRequest_Generic. If I activate this library, responses to requests from AsyncHTTPSRequest_Generic come significantly later than without it. Is there any workaround?

m-maazi avatar Feb 18 '22 18:02 m-maazi

Hi @m-maazi what do you mean with activated? You just initialized the display or do you already feed it?

solhuebner avatar Feb 19 '22 10:02 solhuebner

Hi. Thanks for helping. I have 4 functions. 1st one initializes the display with welcome screen. 2nd one tries to connect to Wifi. 3rd one uses AsyncHTTPSRequest_Generic to get data from server periodically. 4th one updates that data on display periodically. Changing initialization arrangement didn't do any good. If I don't execute function 1 (and 4), then function 3 gets data from server almost immediately. but with display in play, it takes about 4 seconds. There may be some common resource (like timers or interrupts) usage conflict in these two libraries.

m-maazi avatar Feb 22 '22 12:02 m-maazi

Can you elaborate on what exactly Step 4) is? 'Updates the display' means that you're doing graphics drawing routines = CPU bound stuff.

mrcodetastic avatar Feb 22 '22 20:02 mrcodetastic

Or is just setting display begin already delaying it?

solhuebner avatar Feb 22 '22 21:02 solhuebner

Hi. Display shows 8 rows of numbers in white and no graphics. I use TaskSheduler to manage functions. None of my functions take more than 25 ms to execute. I send post request to server and AsyncHTTPSRequest_Generic uses a callback function to notify me when response arrives. Something prevents that callback from executing in time.

m-maazi avatar Feb 23 '22 09:02 m-maazi