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

Someone with more knowledge than me will have to answer this, but I do not believe the WifiNINI library is compatible with the ESP8266.