An example is there for users to learn from and adapt to their needs.
I thought you could easily find out if there exists something similar to WiFiClient for Particle, or get help for this in this forum. I do not decline to help you, but you could start with searching on Particle.
GxEPD2_WiFi_Example
Jean-Marc
I have started a topic in this forum to get help for me to help: