Wifi Access Point (on M4 core), Interfacing, Dual Core processing

Hello everyone,

i hope the Subject ist not to confusing but iam currently trying around a bit to make use of both cores of the
Portenta efficently. But iam struggeling to bring anything useful on the M4 core to run.

My Situation in general (maybe there are other options / ways to implement this, i got time and motivation ^^)

Whats working so far:
the M7 core of my Portenta is being used for SPI communications of several devices which works perfectly fine. I also created a Serial interface to a small python UI so i can control certain things remotely without the use of the serial monitor. So everything of this works perfectly fine.

What is not working:
Since iam not always able to be near the Arduino i want to establish a wireless connection to it via a PC. I cannot connect the Arduino to any existing AP due to company restrictions.
So i created a WiFi AP (the Arduino Pro Example, also on the M7 Core) on the Arduino and i was able to connect to it and was able to change stuff via Wifi.
The Problem at this point is,

WiFiClient client = server.available();

is blocking the complete script and i don't know what to do about it or how (timer, interrupt, timeout). Maybe someone can help me out there if there is a way. But i was not able to have the Hardware Control and the Wifi AP together running on M7 core.
So i tried running the WiFi AP on the M4 core but i absolutely get no responds from this core when i try to compile the wifi example on the m4 core ( i changed the serial print stuff to rpc communications) but it looked like absolutely nothing is happening. I tried normal RPC communications between both cores and that works.

So i then thought maybe the WiFi AP does not work on the M4 core so i switched both.
I tried to compile my code to control the SPI-Hardware on the M4 core but it also does not work. Again it is the same code that runs perfectly fine on the M7 core, i just switched out the Serial Communication to RPC. But nothing happens, not even the RPC communications work.

So more or less my goal and the follow up questions:
I want to remotely connect to the arduino via WiFi (so i thought there is something like a WiFi-TCP listener or something) without blocking the code that is running there. The arduino will probably be running for 12-20 Hrs straight on and i need to check / control some SPI devices from time to time but i cannot use a cabled connection because the arduino is positioned in a sensitive environment.

Was anybody able to create a WiFi AP (the Arduino Pro example) on the M4 core?
Or is it possible to create a non-blocking WiFI AP on the M7 core?
Was anybode able to use both cores simultaneously with real data communication in between?

Maybe iam missing something ( or more things ) and someone can point me in the right direction or has got a working example.

My dream would be:
SPI Control and Serial Interface on the M7 core in case wifi is not working or general fallback control.
WiFi AP on the M4 core as well as transmitting commands from the M4 to the M7 core via RPC or something that i will send from Python or maybe html via a Websocket connection (the next step when/if the webserver is running) to the Arduino WIFi AP. Later on (maybe) analog feedback from Spi -> M7 -> M4 -> WiFi -> Websocket -> real time plot in Python.

Thank you for your time.

Best regards,
Simon

yes the WiFi example is buggy. Only on the Portenta the funktion WiFiClient client = server.available(); is blocking.