Mega 2560 WiFi - error: 'PinStatus' does not name a type

Well, without the means to reproduce your error, it looks like you're on your own.

...and still others have common-sense.

As I wrote earlier "good luck"
(Or "thoughts and prayers", if you prefer)