no idea what im doing

hi yes I’m getting this error message for my code

I’m sorry if I posted this coder wrong this is my first time using the Arduino and this is also my first time working on an Arduino project so please bear with me

this is my code #include <fauxmoESP.h>
#include <AsyncPrinter.h>
#include <async_config.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncTCPbuffer.h>
#include <SyncClient.h>
#include <tcp_axtls.h>
#include <dummy.h>
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include “fauxmoESP.h”
#include <Servo.h>

/* Network credentials /
#define WIFI_SSID "
"
#define WIFI_PASS "
*"

#define SERIAL_BAUDRATE 115200 //this is important to set in the Arduino IDE
bool resetMe=false;
int beginVal=0;

/* Belkin WeMo emulation */
fauxmoESP fauxmo;
Servo myservo; // create servo object to control a servo

void setup()
{
Serial.begin(SERIAL_BAUDRATE);
//setup and wifi connection
wifiSetup();
pinMode(D4, OUTPUT);
myservo.attach(2);
beginVal = myservo.read();
// Device Names for Simulated Wemo switches
fauxmo.addDevice(“finger”);
fauxmo.onMessage(callback);
}

void loop()
{
if(resetMe){
delay(1000);
Serial.println(“reset the servo”);
myservo.write(0);
resetMe=false;
}
fauxmo.handle();
}

/* ---------------------------------------------------------------------------
Device Callback
----------------------------------------------------------------------------*/
void callback(uint8_t device_id, const char * device_name, bool state)
{
Serial.print("Device “); Serial.print(device_name);
Serial.print(” state: ");
if (state)
{
Serial.println(“ON”);
}
else
{
Serial.println(“OFF”);
}

//Switching action on detection of device name, useful for adding
//multiple “devices” to a single ESP unit.

if ( (strcmp(device_name, “finger”) == 0) )
{
if (state)
{
int newVal = beginVal+15;
myservo.write(newVal);
resetMe=true;
Serial.println(“ok”);
} else{
myservo.write(beginVal);
}

}

}

void moveServo(int val){
Serial.println(“moveServo”);
//if you need to scale from a potentiometer to use it with the servo (value between 0 and 180)
//val = map(val, 0, 1023, 0, 180);
myservo.write(val);
}

/* -----------------------------------------------------------------------------
Wifi Setup
-----------------------------------------------------------------------------*/
void wifiSetup()
{
// Set WIFI module to STA mode
WiFi.mode(WIFI_STA);

// Connect
Serial.println ();
Serial.printf("[WIFI] Connecting to %s ", WIFI_SSID);
Serial.println();
WiFi.begin(WIFI_SSID, WIFI_PASS);

// Wait
while (WiFi.status() != WL_CONNECTED)
{
Serial.print(".");
delay(100);
}
Serial.print(" ==> CONNECTED!" );
Serial.println();

// Connected!
Serial.printf("[WIFI] STATION Mode, SSID: %s, IP address: %s\n", WiFi.SSID().c_str(), WiFi.localIP().toString().c_str());
Serial.println();
‘}’

" my first time working on an Arduino project so please bear with me"

If so how did you write this code?

This is very much too complicated for a person just starting out with Arduino.

Master the examples in the IDE before you start with anything too complex.

I copied the code I did not write it I have some background in building computers so I thought I could handle this. Is there any way you could help me with this problem thank you

bennbighead:
Is there any way you could help me with this problem thank you

People will look more kindly on your request when your code is in code tags

code tags.PNG

and the full error message is included. How to do this is shown in the stickies at the top of the topic.

code tags.PNG

So what’s the errror message? which arduino do you use? What is your physical setup?

this is the error message Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (1M SPIFFS)"

In file included from C:\Users\Ben\Desktop\sketch_jun29a\sketch_jun29a.ino:5:0:

C:\Users\Ben\Documents\Arduino\libraries\FauxmoESP\src/fauxmoESP.h:42:27: error: expected initializer before 'PROGMEM'

const char UDP_TEMPLATE PROGMEM =

^

C:\Users\Ben\Documents\Arduino\libraries\FauxmoESP\src/fauxmoESP.h:54:29: error: expected initializer before 'PROGMEM'

const char SETUP_TEMPLATE PROGMEM =

^

C:\Users\Ben\Documents\Arduino\libraries\FauxmoESP\src/fauxmoESP.h:65:22: error: expected initializer before 'PROGMEM'

const char HEADERS PROGMEM =

^

In file included from C:\Users\Ben\Desktop\sketch_jun29a\sketch_jun29a.ino:5:0:

C:\Users\Ben\Documents\Arduino\libraries\FauxmoESP\src/fauxmoESP.h:113:9: error: 'WiFiEventHandler' does not name a type

WiFiEventHandler _handler;

^

In file included from C:\Users\Ben\Documents\Arduino\libraries\ESPAsyncTCP-master\src/ESPAsyncTCP.h:26:0,

from C:\Users\Ben\Documents\Arduino\libraries\FauxmoESP\src/fauxmoESP.h:82,

from C:\Users\Ben\Desktop\sketch_jun29a\sketch_jun29a.ino:5:

C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/IPAddress.h: In member function 'uint8_t* loop()::Client::rawIPAddress(IPAddress&)':

C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/IPAddress.h:40:18: error: 'uint8_t* IPAddress::raw_address()' is private

uint8_t* raw_address() {

^

In file included from C:\Users\Ben\Documents\Arduino\libraries\ESPAsyncTCP-master\src/SyncClient.h:25:0,

from C:\Users\Ben\Desktop\sketch_jun29a\sketch_jun29a.ino:21:

C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Client.h:43:37: error: within this context

return addr.raw_address();

^

In file included from C:\Users\Ben\Desktop\sketch_jun29a\sketch_jun29a.ino:25:0:

C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h: In function 'void loop()':

C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:27:8: error: expected unqualified-id before string constant

extern "C" {

^

sketch_jun29a:133: error: expected '}' at end of input

'}'

^

Multiple libraries were found for "WiFiUdp.h"
Used: C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi
Multiple libraries were found for "Servo.h"
Used: C:\Users\Ben\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Servo
exit status 1
expected '}' at end of input

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

im using a nodemcu esp8266

Look towards the end of the messages from the compiler:

expected '}' at end of input

Use the tool in the IDE to format the code nicely, then it may be clear where this bracket is missing in your code.

Use commenting to blot out all the code in your functions, e.g.

void setup()
{
/*
  int n = 0;
  n = 1;
*/
}

That way you eliminate everything except the function definitions.
If there are no compile errors then start re-instating the function contents one line at a time, e.g.

void setup()
{
  int n = 0;
/*
  n = 1;
*/
}

You will soon discover the line of code where the compile error is originating from.
Very useful technique for tracking down hard to spot compile errors.

bennbighead:
I copied the code I did not write it

No good will ever come out of trying to be a copy/paste programmer. Start from the basics and learn to do it the right way (i.e. yourself).