The program enters in busy waiting after it attempts to read. So it won't read anything. Change this part: int lng = Serial.read(); while(Serial.available() ... ... <看更多>
int Var = 55; //Do it in 2 lines e.g. Serial.print("L "); // String Serial.println(Var); // Print Variable on same line then send a line feed. ... <看更多>