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

We can't see your code
We can't see your actual error messages.

This is NOT an installation and troubleshooting issue.