Compile Error

I do my project about sending sensor value to web sever with nodemcu v1.0 board.
but arduino IDE said Error compiling for board NodeMCU 1.0 (ESP-12E Module). to me so i can’t do anything. please help

#include<Wire.h>
const int MPU_addr = 0x68;
int16_t AcX,AcY,AcZ

#include <ESP8266WiFi.h>
const char *ssid = “HKEL”;
const char *password = “1001001001”;

const char* host = “61.75.81.53”;

void setup() {

Wire.begin();
Wire.beginTransmission(MPU_addr);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);

Serial.begin(115200);
delay(10);

// We start by connecting to a WiFi network

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("");
Serial.println(“WiFi connected”);
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}

int value = 0;

void loop() {
Wire.beginTransmission(MPU_addr);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU_addr,14,true);
AcX=Wire.read()<<8|Wire.read();
AcY=Wire.read()<<8|Wire.read();
AcZ=Wire.read()<<8|Wire.read();

delay(400);
++value;

Serial.print("connecting to ");
Serial.println(host);

// Use WiFiClient class to create TCP connections
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println(“connection failed”);
return;
}

Serial.print(“Requesting URL: “);
Serial.println(”/test/chart2/chart_test_input.php?v=” + AcY + “&u=215”);

// This will send the request to the server
client.print(String(“GET “) + “/test/chart2/chart_test_input.php?v=” + AcY + “&u=215” + " HTTP/1.1\r\n” +
“Host: " + host + “\r\n” +
“Connection: close\r\n\r\n”);
int timeout = millis() + 5000;
while (client.available() == 0) {
if (timeout - millis() < 0) {
Serial.println(”>>> Client Timeout !”);
client.stop();
return;
}
}

// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil(’\r’);
Serial.print(line);
}

Serial.println();
Serial.println(“closing connection”);
}

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

dkh1001:
but arduino IDE said Error compiling for board NodeMCU 1.0 (ESP-12E Module). to me so i can’t do anything. please help

It said a lot more than that. When you encounter an error in the Arduino IDE you will see a button on the right side of the orange bar “Copy error messages”. Click that button then paste the error messages to the forum using code tags.

Now to your problem. You have two different bugs in your code.

The first is at line 3:

int16_t AcX,AcY,AcZ

you forgot the semicolon at the end. This causes quite a strange error.

The second is at line 68:

Serial.println("/test/chart2/chart_test_input.php?v=" + AcY + "&u=215");

You can’t do that, do this instead:

  Serial.print("/test/chart2/chart_test_input.php?v=");
  Serial.print(AcY);
  Serial.println("&u=215");

Thank you so much!! This is my first try this forum so i have mistakes. I'm sorry about that. Again, your help make my code better, thank you