Newbe problem with project ESP8266_Control Relay

I thought it was a simple project using a program for the "ESP8266_control_ relay" and all I needed do was enter the SSID and Password. With the real password. When I did as told, when running the verify errors come up WiFiServer server (80); (Wifi server does not have a type)
Reading thru the documentation and looking for similar errors can not find an answer that works. The first lines of the code are copied below. My WiFi does use WPA2-PSK (AES) security in case that is an issue too.

Thought this would get my feet wet, but so far way over my head.

const char* ssid = "stargate"; // fill in here your router or wifi SSID
const char* password = "password"; // fill in here your router or wifi password
#define RELAY 1 // relay connected to GPIO0
WiFiServer server(80);
void setup()
{

How about posting your full program ?

Please post the complete sketch using </> code-tags.
Do you have this line at the top of your sketch ?

#include <ESP8266WiFi.h>

No that was the problem.
I do not understand why someone would share a program with a dummy and leave something out. But I have learned something too! :slight_smile:

Thanks!

1cemick:
I do not understand why someone would share a program with a dummy and leave something out.

Hence starting out with the examples that come with a library is usually better than finding something on the web (where there is a lot of incorrect stuff specially for the ESP !)